# Custom post order (by custom param)

**URL:** https://discourse.gohugo.io/t/custom-post-order-by-custom-param/9464
**Category:** support
**Created:** [December 4, 2017, 7:52am UTC](https://discourse.gohugo.io/t/custom-post-order-by-custom-param/9464 "2017-12-04T07:52:31Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![igramnet](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/igramnet/32/2715_2.png) [@igramnet](https://discourse.gohugo.io/u/igramnet)
#### Post date: [December 4, 2017, 7:52am UTC](https://discourse.gohugo.io/t/custom-post-order-by-custom-param/9464/1 "2017-12-04T07:52:31Z")

</div>

Hello! I have a Section ‘press’ and I have the code  
`{{ range $index, .Paginator.Pages }}{{ .Render "press_section.li" }}{{ end }}{{ range (where .Site.RegularPages "Section" "press") }}{{ end }}`

In each post file, I have the parameter - in\_top (make 0 or 1). I need to generate the content with ordering by parameter in\_top (desc) and then - by date (desc). How can I do that?
