Can you reorder content via drag and drop in Sanity?

7 replies
Last updated: Nov 29, 2025
Also need to know wether you can re-order content via drag ‘n’ drop, any ideas on that?
AI Update

Yes, you absolutely can reorder content via drag and drop in Sanity! There's an official plugin called Orderable Document List that's built specifically for this.

The plugin lets content editors drag and drop documents to reorder them directly within the Studio interface. Under the hood, it manages the ordering using an orderRank field, which means the order you set in the Studio can actually be queried and reflected in your frontend applications.

To get started, just install it:

npm i @sanity/orderable-document-list

This is much cleaner than the old workarounds people used to use, like manually adding numerical "order" fields to documents or creating wrapper documents with reference arrays.

One thing to keep in mind: the built-in sort orders you can configure in Sanity Studio (like sorting by date or title) only affect how documents are displayed within the Studio itself. They don't automatically carry over to your API queries. That's why the Orderable Document List plugin is so useful—it gives you manual ordering that persists and can be used in your actual application.

The plugin works best for small to medium-sized collections where manual ordering makes sense. For really large datasets, you'd probably want to stick with query-based sorting instead.

Show original thread
7 replies

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?