Sorting via reference field. Any ideas

I have reference field in dataset and i need to sort dataset via this data. In dataset reference field is saved as _id. Is it any easy solution to sort dataset via reference value not id. Without this my page looks strange ?

Hi,
Use query to get the items in your database, add . include to the query to get the reference field’s data and then you can use the sort function to sort the items by a property from the reference field.

Let me know if you need further help,
Or

Hey @Or, did you mean to link to the MDN sort, as in using the array sort as opposed to the Wix Data sort?