Sort() doesn't work

I get the unsorted elements of the array:

Could you please tell me why?

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.