Adds drag and drop reordering of documents in the admin for selected collections, similar to array or block items. The order is stored in a docOrder field, so REST, Local API and GraphQL queries can sort by it. Access to the saveChanges endpoint is configurable, and a setup script is provided for collections that already contain documents. Targets Payload 3.0 beta.
Installation
npm i @payload-enchants/docs-reorder335
Stars
28
Forks
28
Open Issues
1 years ago
Last Updated
286
Weekly Downloads
v1.2.2
npm Version
60.5 KB
Unpacked Size
3
Dependencies
335+2 since Sep 7
| Date | Stars |
|---|---|
| Dec 6, 2026 | 335 |
| Dec 5, 2026 | 335 |
| Dec 4, 2026 | 335 |
| Dec 3, 2026 | 335 |
| Dec 2, 2026 | 335 |
| Dec 1, 2026 | 335 |
| Nov 30, 2026 | 335 |
| Nov 29, 2026 | 335 |
| Nov 28, 2026 | 335 |
| Nov 27, 2026 | 335 |
| Nov 26, 2026 | 335 |
| Nov 25, 2026 | 335 |
| Nov 24, 2026 | 335 |
| Nov 23, 2026 | 335 |
| Nov 22, 2026 | 335 |
| Nov 21, 2026 | 335 |
| Nov 20, 2026 | 335 |
| Nov 19, 2026 | 336 |
| Nov 18, 2026 | 336 |
| Nov 17, 2026 | 335 |
| Nov 16, 2026 | 335 |
| Nov 15, 2026 | 335 |
| Nov 14, 2026 | 335 |
| Nov 13, 2026 | 335 |
| Nov 12, 2026 | 335 |
| Nov 11, 2026 | 335 |
| Nov 10, 2026 | 335 |
| Nov 9, 2026 | 335 |
| Nov 8, 2026 | 335 |
| Nov 7, 2026 | 335 |
| Nov 6, 2026 | 335 |
| Nov 5, 2026 | 335 |
| Nov 4, 2026 | 335 |
| Nov 3, 2026 | 335 |
| Nov 2, 2026 | 335 |
| Nov 1, 2026 | 335 |
| Oct 31, 2026 | 335 |
| Oct 30, 2026 | 335 |
| Oct 29, 2026 | 335 |
| Oct 28, 2026 | 335 |
| Oct 27, 2026 | 335 |
| Oct 26, 2026 | 335 |
| Oct 25, 2026 | 335 |
| Oct 24, 2026 | 334 |
| Oct 23, 2026 | 334 |
| Oct 22, 2026 | 334 |
| Oct 21, 2026 | 334 |
| Oct 20, 2026 | 334 |
| Oct 19, 2026 | 334 |
| Oct 18, 2026 | 334 |
| Oct 17, 2026 | 334 |
| Oct 16, 2026 | 334 |
| Oct 15, 2026 | 334 |
| Oct 14, 2026 | 334 |
| Oct 13, 2026 | 334 |
| Oct 12, 2026 | 334 |
| Oct 11, 2026 | 333 |
| Oct 10, 2026 | 333 |
| Oct 9, 2026 | 333 |
| Oct 8, 2026 | 333 |
| Oct 7, 2026 | 333 |
| Oct 6, 2026 | 333 |
| Oct 5, 2026 | 333 |
| Oct 4, 2026 | 333 |
| Oct 3, 2026 | 333 |
| Oct 2, 2026 | 333 |
| Oct 1, 2026 | 333 |
| Sep 30, 2026 | 333 |
| Sep 29, 2026 | 333 |
| Sep 28, 2026 | 333 |
| Sep 27, 2026 | 333 |
| Sep 26, 2026 | 333 |
| Sep 25, 2026 | 333 |
| Sep 24, 2026 | 333 |
| Sep 23, 2026 | 333 |
| Sep 22, 2026 | 333 |
| Sep 21, 2026 | 333 |
| Sep 20, 2026 | 333 |
| Sep 19, 2026 | 333 |
| Sep 18, 2026 | 333 |
| Sep 17, 2026 | 333 |
| Sep 16, 2026 | 333 |
| Sep 15, 2026 | 333 |
| Sep 14, 2026 | 333 |
| Sep 13, 2026 | 333 |
| Sep 12, 2026 | 333 |
| Sep 11, 2026 | 333 |
| Sep 10, 2026 | 333 |
| Sep 9, 2026 | 333 |
| Sep 8, 2026 | 333 |
| Sep 7, 2026 | 333 |
Shared by 7 plugins in r1tsuu/payload-enchants.
286−2K since Sep 7
| Date | Weekly downloads |
|---|---|
| Dec 6, 2026 | 286 |
| Dec 5, 2026 | 266 |
| Dec 4, 2026 | 156 |
| Dec 3, 2026 | 143 |
| Dec 2, 2026 | 114 |
| Dec 1, 2026 | 97 |
| Nov 30, 2026 | 66 |
| Nov 29, 2026 | 116 |
| Nov 28, 2026 | 123 |
| Nov 27, 2026 | 121 |
| Nov 26, 2026 | 122 |
| Nov 25, 2026 | 73 |
| Nov 24, 2026 | 73 |
| Nov 23, 2026 | 71 |
| Nov 22, 2026 | 27 |
| Nov 21, 2026 | 31 |
| Nov 20, 2026 | 45 |
| Nov 19, 2026 | 47 |
| Nov 18, 2026 | 45 |
| Nov 17, 2026 | 43 |
| Nov 16, 2026 | 45 |
| Nov 15, 2026 | 37 |
| Nov 14, 2026 | 55 |
| Nov 13, 2026 | 42 |
| Nov 12, 2026 | 41 |
| Nov 11, 2026 | 42 |
| Nov 10, 2026 | 95 |
| Nov 9, 2026 | 95 |
| Nov 8, 2026 | 107 |
| Nov 7, 2026 | 82 |
| Nov 6, 2026 | 80 |
| Nov 5, 2026 | 79 |
| Nov 4, 2026 | 101 |
| Nov 3, 2026 | 54 |
| Nov 2, 2026 | 58 |
| Nov 1, 2026 | 68 |
| Oct 31, 2026 | 63 |
| Oct 30, 2026 | 68 |
| Oct 29, 2026 | 67 |
| Oct 28, 2026 | 42 |
| Oct 27, 2026 | 36 |
| Oct 26, 2026 | 31 |
| Oct 25, 2026 | 10 |
| Oct 24, 2026 | 11 |
| Oct 23, 2026 | 6 |
| Oct 22, 2026 | 53 |
| Oct 21, 2026 | 68 |
| Oct 20, 2026 | 71 |
| Oct 19, 2026 | 75 |
| Oct 18, 2026 | 77 |
| Oct 17, 2026 | 84 |
| Oct 16, 2026 | 87 |
| Oct 15, 2026 | 40 |
| Oct 14, 2026 | 82 |
| Oct 13, 2026 | 81 |
| Oct 12, 2026 | 78 |
| Oct 11, 2026 | 76 |
| Oct 10, 2026 | 87 |
| Oct 9, 2026 | 115 |
| Oct 8, 2026 | 117 |
| Oct 7, 2026 | 62 |
| Oct 6, 2026 | 61 |
| Oct 5, 2026 | 70 |
| Oct 4, 2026 | 89 |
| Oct 3, 2026 | 73 |
| Oct 2, 2026 | 50 |
| Oct 1, 2026 | 81 |
| Sep 30, 2026 | 83 |
| Sep 29, 2026 | 82 |
| Sep 28, 2026 | 76 |
| Sep 27, 2026 | 193 |
| Sep 26, 2026 | 971 |
| Sep 25, 2026 | 1,799 |
| Sep 24, 2026 | 2,803 |
| Sep 23, 2026 | 3,126 |
| Sep 22, 2026 | 3,288 |
| Sep 21, 2026 | 3,404 |
| Sep 20, 2026 | 8,995 |
| Sep 19, 2026 | 10,668 |
| Sep 18, 2026 | 10,270 |
| Sep 17, 2026 | 9,739 |
| Sep 16, 2026 | 9,677 |
| Sep 15, 2026 | 10,562 |
| Sep 14, 2026 | 10,827 |
| Sep 13, 2026 | 5,241 |
| Sep 12, 2026 | 3,004 |
| Sep 11, 2026 | 3,112 |
| Sep 10, 2026 | 2,773 |
| Sep 9, 2026 | 2,686 |
| Sep 8, 2026 | 1,914 |
| Sep 7, 2026 | 2,272 |
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/684372049-docs-reorder)<a href="https://payloaddirectory.dev/plugins/684372049-docs-reorder"><img src="https://payloaddirectory.dev/badge/684372049-docs-reorder.svg" alt="Payload Directory"></a>README
pnpm add @payload-enchants/docs-reorder
Adds an option to re-order collection documents with drag n drop (almost like array/blocks items). Then on your front end you can query documents with applied sort by docOrder field.
In your payload.config.ts:
/// ....
import { docsReorder } from '@payload-enchants/docs-reorder';
export default buildConfig({
// ...
plugins: [
docsReorder({
collections: [{ slug: 'pages' }], // The feature will be enabled only for collections that are in this array.,
access: ({ req, data }) => {
// Optional, configure access for `saveChanges` endpoint, default: Boolean(req.user)
return req.user?.collection === 'admins';
},
}),
],
});
REST:
fetch('http://localhost:3000/api/examples?sort=docOrder').then((res) => res.json());
Local API:
payload.find({ collection: 'examples', sort: 'docOrder' });
GraphQL:
query {
Examples(sort: "docOrder") {
docs {
title
}
}
const collections: (keyof GeneratedTypes['collections'])[] = ['docs-reoder-examples'];
better use as title
Build a custom document title from multiple fields for the admin useAsTitle display
50120/wk335v3
payload docs reorder
Drag-and-drop reordering of collection documents in the Payload admin, sorted by a docOrder field
3111/wk4v3
payload kanban board
Kanban board view for Payload collections with configurable status columns
38111/wk42v2
payload plugin collections docs order
Re-order collection documents in the admin with drag and drop and sort by a docOrder field
018v3
payload nested docs page tree
Page tree list view for nested docs collections with drag and drop, status badges and live or preview links
771.6k/wk35v3
payload plugin menu
Editor-friendly navigation menus with dropdowns, headings, icons and per-entry visibility
76126/wk0v3