Ok, first things first. You are querying one collection called Experiences , and the sorting method is going to be applied to this collection. The include method you use, is only there to grab the referenced item in another collection. You will have to sort the data that you queried manually, using an Array.sort() method. And your query is limited to 2 items only.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Sorting query results by referenced column using include() | 1 | 214 | February 17, 2022 | |
Sorting query by included referenced field does not work | 4 | 436 | January 19, 2020 | |
Help Sorting By Date In Referenced Table | 3 | 500 | July 6, 2019 | |
WixDataQueryReferencedOptions does not work | 0 | 135 | April 27, 2020 | |
delivers multi-references query result in disorder | 0 | 46 | April 24, 2020 |