# Sorting returned data

**URL:** <https://discourse.gohugo.io/t/sorting-returned-data/14730>\
**Category:** support\
**Created:** [October 16, 2018, 3:51pm UTC](https://discourse.gohugo.io/t/sorting-returned-data/14730 "2018-10-16T15:51:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dirkolbrich](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/dirkolbrich/32/6968_2.png) [@dirkolbrich](https://discourse.gohugo.io/u/dirkolbrich)\
**Post date:** [October 16, 2018, 8:30pm UTC](https://discourse.gohugo.io/t/sorting-returned-data/14730/2 "2018-10-16T20:30:54Z")

</div>

Does this thread helps?

> [@Ranging over collection of data files](https://discourse.gohugo.io/t/solved-ranging-over-collection-of-data-files/14488/9):
>
> A good nights sleep helped to think about this. range accepts maps, arrays and slices, first and where only accept an array or a slice. The data in the data/ folder [will be accessible as a map in the .Site.Data variable](https://gohugo.io/templates/data-templates/). A map by Golang definitions is an unordered container for data, the order within that container is quite random. Posts in the content/ folder on the other side will be parsed into a slice of type Pages []\*Page with a default order [Default: Weight \> Date \> LinkTitle \> Fil…](https://gohugo.io/templates/lists/#default-weight-date-linktitle-filepath)

---

_[View the full topic](https://discourse.gohugo.io/t/sorting-returned-data/14730)._
