# Sorting entries with a specific locale

**URL:** <https://discourse.getcockpit.com/t/sorting-entries-with-a-specific-locale/2353>\
**Category:** Support\
**Created:** [May 7, 2022, 12:24pm UTC](https://discourse.getcockpit.com/t/sorting-entries-with-a-specific-locale/2353 "2022-05-07T12:24:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dvarga](https://avatars.discourse-cdn.com/v4/letter/d/5fc32e/32.png) [@dvarga](https://discourse.getcockpit.com/u/dvarga)\
**Post date:** [May 7, 2022, 12:24pm UTC](https://discourse.getcockpit.com/t/sorting-entries-with-a-specific-locale/2353/1 "2022-05-07T12:24:24Z")

</div>

Hey!

Is there a way to specify a locale for sorting?

For example, i have the following items in my collection: Apple, Ápple, Banana, apple, ápple, banana  
If I use `sort: {title: 1}` i get the items in this order: Apple, Banana, Ápple, apple, banana, ápple  
Which is not right, the correct order should be: apple, Apple, ápple, Ápple, banana, Banana

Is there a way to use [MongoDB’s Collation](https://www.mongodb.com/docs/manual/reference/collation/) or sort the entries with locale/case sensitivity?

Thanks!

---

<div class="post-metadata">

**Author:** ![dvarga](https://avatars.discourse-cdn.com/v4/letter/d/5fc32e/32.png) [@dvarga](https://discourse.getcockpit.com/u/dvarga)\
**Post date:** [February 15, 2023, 1:08pm UTC](https://discourse.getcockpit.com/t/sorting-entries-with-a-specific-locale/2353/2 "2023-02-15T13:08:47Z")

</div>

@artur any update on this?
