# Sort a group alphabetically

**URL:** <https://community.glideapps.com/t/sort-a-group-alphabetically/62233>\
**Category:** Ask for Help\
**Created:** [May 29, 2023, 1:42pm UTC](https://community.glideapps.com/t/sort-a-group-alphabetically/62233 "2023-05-29T13:42:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan76](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dan76/32/15696_2.png) [@Dan76](https://community.glideapps.com/u/Dan76)\
**Post date:** [May 29, 2023, 1:42pm UTC](https://community.glideapps.com/t/sort-a-group-alphabetically/62233/1 "2023-05-29T13:42:34Z")

</div>

Is it possible to sort a collection by group alphabetically, and then have the items in each group sorted alphabetically? Seems like you have to choose one or the other.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [May 29, 2023, 1:54pm UTC](https://community.glideapps.com/t/sort-a-group-alphabetically/62233/2 "2023-05-29T13:54:42Z")

</div>

The new Query column can do this for you.

- Create a Query column targeting the data you want in your Collection, and define a sort column
- Use the Query column as the source of your Collection, and sort the Collection using your Group By column.

> **[Glide • Query Column](https://www.glideapps.com/docs/reference/computed-columns/query-column)**
>
> Create complex relations in your data with conditional filtering, sorting and limits.

---

<div class="post-metadata">

**Author:** ![Dan76](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dan76/32/15696_2.png) [@Dan76](https://community.glideapps.com/u/Dan76)\
**Post date:** [May 29, 2023, 1:56pm UTC](https://community.glideapps.com/t/sort-a-group-alphabetically/62233/3 "2023-05-29T13:56:05Z")

</div>

Oh, I’ve never seen that. Great! Thank you again!!

---

<div class="post-metadata">

**Author:** ![Dan76](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dan76/32/15696_2.png) [@Dan76](https://community.glideapps.com/u/Dan76)\
**Post date:** [May 29, 2023, 2:28pm UTC](https://community.glideapps.com/t/sort-a-group-alphabetically/62233/4 "2023-05-29T14:28:18Z")

</div>

Took me a while to find where to add it as a source for the collection but got there in the end. Works perfectly!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [May 30, 2023, 2:28pm UTC](https://community.glideapps.com/t/sort-a-group-alphabetically/62233/5 "2023-05-30T14:28:38Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
