Managing order of displayed items in Sanity.io using defaultOrdering and individual schema ordering.

6 replies
Last updated: Dec 16, 2020
Hi, I wonder if it is possible to use https://www.sanity.io/guides/getting-started-with-structure-builder and manage order of displayed items??We can use
filter and params to specify elements but what about order of them ...? Lets have items and for each of them display list of tags (other document) they have referenced, but keep order of this references? Is it possible?
Dec 2, 2020, 9:54 AM
Dec 2, 2020, 12:28 PM
user Y
i wont order by filed from tag like name but in order of tags in parent - not sure if this is possible by defaultOrdering cause there must be specified a field and desc/asc ....?
Dec 2, 2020, 3:13 PM
user F
i also have this problem, let me know if you find a solution!
Dec 2, 2020, 10:40 PM
user Y
your link gives a
*502*: BAD_GATEWAY
🙀
Dec 16, 2020, 10:32 AM
Btw, I actually found the
ordering
property on individual schemas to solve this in a better way for me https://www.sanity.io/docs/sort-orders
Dec 16, 2020, 10:57 AM
Also, the link above doesn’t give 502 anymore 😌 Thanks for the quick fix!
Dec 16, 2020, 10:57 AM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?