# \[Solved\] List recent pages not properly functioning with weight?

**URL:** <https://discourse.gohugo.io/t/solved-list-recent-pages-not-properly-functioning-with-weight/3016>\
**Category:** support\
**Created:** [March 30, 2016, 1:00am UTC](https://discourse.gohugo.io/t/solved-list-recent-pages-not-properly-functioning-with-weight/3016 "2016-03-30T01:00:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yi\_Wang](https://avatars.discourse-cdn.com/v4/letter/y/848f3c/32.png) [@Yi\_Wang](https://discourse.gohugo.io/u/Yi_Wang)\
**Post date:** [March 30, 2016, 1:00am UTC](https://discourse.gohugo.io/t/solved-list-recent-pages-not-properly-functioning-with-weight/3016/1 "2016-03-30T01:00:50Z")

</div>

I have setup a website with weights for some posts.

The command

`{{ range first 10 .Site.Pages }}`

turns out not listing pages with time order. But instead weight is considered more important and time ordering only appears for the posts with the same weight.

This is different from what mentioned here [https://gohugo.io/templates/variables/](https://gohugo.io/templates/variables/) where it says the ordering is according to date. According to date instead of weight is more logical (and at least should be an available option) because if the sidebar is called “recent posts”, it should actually list the recent posts.

Is it a bug or any way out? Thanks!

---

<div class="post-metadata">

**Author:** ![Yi\_Wang](https://avatars.discourse-cdn.com/v4/letter/y/848f3c/32.png) [@Yi\_Wang](https://discourse.gohugo.io/u/Yi_Wang)\
**Post date:** [March 30, 2016, 1:46am UTC](https://discourse.gohugo.io/t/solved-list-recent-pages-not-properly-functioning-with-weight/3016/2 "2016-03-30T01:46:28Z")

</div>

Figured out myself 🙂

`{{ range first 5 .Site.Pages.ByDate.Reverse }}`
