keystatic icon indicating copy to clipboard operation
keystatic copied to clipboard

New `collection` option: `defaultSort`

Open jplhomer opened this issue 1 year ago • 3 comments

This PR is an alternative to #1105 which provides an option for the default sort to be used by a Collection list view.

I chose the following API:

defaultSort: SortDescriptor

This provides a way for users to default to e.g. a reverse chronological order on their collections list view for a set of blog posts.

jplhomer avatar Apr 29 '24 20:04 jplhomer

⚠️ No Changeset found

Latest commit: f8974d9bde7b10c90613b12d732a7ac8be269585

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Apr 29 '24 20:04 changeset-bot[bot]

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
keystatic-site ✅ Ready (Inspect) Visit Preview Apr 30, 2024 0:34am

vercel[bot] avatar Apr 29 '24 20:04 vercel[bot]

FYI: Something similar is planned as part of a larger "columns definition" body of work, which is slated as a roadmap item to be picked up in the near future.

jossmac avatar May 15 '24 06:05 jossmac

Closing this to defer to this roadmap item

jplhomer avatar Jun 20 '24 20:06 jplhomer

Is there a way to track that roadmap item? I'm interested in seeing column sort happening! 💜

jasikpark avatar Jun 20 '24 23:06 jasikpark