# Sorting blog posts alphabetically

**URL:** <https://community.hubspot.com/t/sorting-blog-posts-alphabetically/3184>\
**Category:** CMS Development\
**Created:** [August 30, 2017, 2:26pm UTC](https://community.hubspot.com/t/sorting-blog-posts-alphabetically/3184 "2017-08-30T14:26:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CarolineLane](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/carolinelane/32/2401_2.png) [@CarolineLane](https://community.hubspot.com/u/CarolineLane)\
**Post date:** [August 30, 2017, 2:26pm UTC](https://community.hubspot.com/t/sorting-blog-posts-alphabetically/3184/1 "2017-08-30T14:26:28Z")

</div>

Hello!

I created a dictionary using a blog [Movista's dictionary of retail execution terms](https://www.naturalinsight.com/retail-dictionary)

I would like to order the posts alphabetically instead of publishing date. Is there a way to do that?

Thanks!

Caroline

---

<div class="post-metadata">

**Author:** ![Jsum](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jsum/32/20405_2.png) [@Jsum](https://community.hubspot.com/u/Jsum)\
**Post date:** [August 30, 2017, 5:04pm UTC](https://community.hubspot.com/t/sorting-blog-posts-alphabetically/3184/2 "2017-08-30T17:04:55Z")

</div>

You can use a [sort filter](http://designers.hubspot.com/docs/hubl/hubl-supported-filters#hs_cos_wrapper_widget_2815110291) on your contents loop

```auto
{% for content in contents|sort(False, False, 'name') %}

{% endfor %}

```

---

<div class="post-metadata">

**Author:** ![dannio](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dannio/32/95715_2.png) [@dannio](https://community.hubspot.com/u/dannio)\
**Post date:** [July 5, 2019, 7:57am UTC](https://community.hubspot.com/t/sorting-blog-posts-alphabetically/3184/3 "2019-07-05T07:57:14Z")

</div>

But this will only sort what’s currently on the page, i.e the current loop.
