# Sorting blog posts in descending order

**URL:** https://discourse.gohugo.io/t/sorting-blog-posts-in-descending-order/1427
**Category:** support
**Created:** [July 13, 2015, 8:12pm UTC](https://discourse.gohugo.io/t/sorting-blog-posts-in-descending-order/1427 "2015-07-13T20:12:46Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![pmcgrath](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@pmcgrath](https://discourse.gohugo.io/u/pmcgrath)
#### Post date: [July 13, 2015, 9:58pm UTC](https://discourse.gohugo.io/t/sorting-blog-posts-in-descending-order/1427/3 "2015-07-13T21:58:32Z")

</div>

bep,  
Bingo - sort only posts by date reversed - latest at top, where I wanted the date and the title with a link

```
  {{ range (where .Data.Pages "Section" "post").ByDate.Reverse }}
    {{ .Date.Format "Jan 02, 2006" }} » <a href="{{ .RelPermalink }}">{{ .Title }}</a><br/>
  {{ end }}

```

Many thanks  
Pat

---

_[View the full topic](https://discourse.gohugo.io/t/sorting-blog-posts-in-descending-order/1427)._
