# Sort() doesn't work

**URL:** <https://community.fibery.io/t/sort-doesnt-work/5165>\
**Category:** Get Help\
**Created:** [September 17, 2023, 3:03pm UTC](https://community.fibery.io/t/sort-doesnt-work/5165 "2023-09-17T15:03:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikhail](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/mikhail/32/7493_2.png) [@Mikhail](https://community.fibery.io/u/Mikhail)\
**Post date:** [September 17, 2023, 3:03pm UTC](https://community.fibery.io/t/sort-doesnt-work/5165/1 "2023-09-17T15:03:23Z")

</div>

I get the unsorted elements of the array:

 ![10275chrome](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/5/53ef765adebd65b03123f4c83c54812300fad0c0.png)

Could you please tell me why?

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [September 17, 2023, 5:13pm UTC](https://community.fibery.io/t/sort-doesnt-work/5165/2 "2023-09-17T17:13:25Z")

</div>

`Sort()` is not a UI function, it is a ‘backend’ function. It is really only useful when followed by `.First()` or `.Last()` to return a single item.

When viewing a single entity, the relation field component offers sorting.
