# Sorting posts by title, case insensitive

**URL:** <https://discourse.gohugo.io/t/sorting-posts-by-title-case-insensitive/2413>\
**Category:** support\
**Created:** [January 8, 2016, 2:29pm UTC](https://discourse.gohugo.io/t/sorting-posts-by-title-case-insensitive/2413 "2016-01-08T14:29:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![markus8191](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@markus8191](https://discourse.gohugo.io/u/markus8191)\
**Post date:** [January 8, 2016, 2:29pm UTC](https://discourse.gohugo.io/t/sorting-posts-by-title-case-insensitive/2413/1 "2016-01-08T14:29:16Z")

</div>

I would like to sort my posts by title. I want it to be case **in** sensitive. I know about `.Data.Pages.ByTitle`, but that doesn’t do the trick for the case insensitivity.

How would I change the following code to get case insensitive sorting?

```auto
{{ range .Data.Pages.ByTitle }}
  <div class="post">
    <a href="{{ .Permalink }}">{{ .Title }}</a>
  </div>
{{ end }}

```

---

<div class="post-metadata">

**Author:** ![spf13](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/spf13/32/37_2.png) [@spf13](https://discourse.gohugo.io/u/spf13)\
**Post date:** [January 18, 2016, 7:20pm UTC](https://discourse.gohugo.io/t/sorting-posts-by-title-case-insensitive/2413/2 "2016-01-18T19:20:40Z")

</div>

I don’t believe that there is a function that will change the sort to be case insensitive today.

The functions are listed here (look for sort):

> **[Functions Quick Reference](http://gohugo.io/functions/)**
>
> Comprehensive list of Hugo templating functions, including basic and advanced usage examples.

I don’t think it would be all together too hard to add this feature. Please create an issue and add the label “help wanted”
