Feature: Collection sort order in admin sidebar #1751
khoinguyenpham04
announced in
Roadmap
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
This Roadmap discussion mirrors #474: Feature: Collection sort order in admin sidebar.
Use this discussion to upvote the roadmap item and discuss priority, use cases, and product feedback. Keep implementation tracking, reproduction details, and PR-specific feedback on the source issue.
enhancement,area/admin,roadmap/1.0,roadmap/editor-experienceOriginal Issue
Problem
Collections in the admin sidebar are sorted alphabetically by slug (see `listCollections` in `packages/core/src/schema/registry.ts:85` — `.orderBy("slug", "asc")`). This forces arbitrary ordering that rarely matches how content should be presented on the site.
For example, a portfolio site with `positions`, `projects`, `education`, `certifications`, `endorsements`, `posts`, `pages` always shows them in alphabetical order in the admin: Certifications → Education → Endorsements → Pages → Positions → Posts → Projects — regardless of the logical order the site renders them in.
Proposed Solution
Add a `sort_order` column to `_emdash_collections` (nullable integer). Update `listCollections` to `.orderBy("sort_order", "asc")` with a secondary sort on `slug` for ties (and for collections with no explicit order).
Schema change
Seed file
```jsonc
{
"collections": [
{ "slug": "positions", "sortOrder": 1, ... },
{ "slug": "projects", "sortOrder": 2, ... }
]
}
```
Workarounds
None that don't involve renaming slugs (which breaks URLs and queries) or forking the admin.
Related
All reactions