Ability to specify a defaultSort
on a collection by collection basis
#2377
jmikrut
started this conversation in
Feature Requests & Ideas
Replies: 1 comment 7 replies
-
Is this referring to the property "defaultSort" on the Collection Config? If so it appears to only accept a name of a field and an optional "-" flag. It would be much more useful if it could also accept a function. For example I'm currently trying to sort a collection of version tags semantically i.e. ["0.0.1", "0.0.2", "0.0.3", ...., "0.0.10", "0.0.11"] but defaultSort is sorting them as ["0.0.1", "0.0.10", "0.0.11", "0.0.2", "0.0.3", etc.] |
Beta Was this translation helpful? Give feedback.
7 replies
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.
-
We should expose a property to allow developers to specify a default
sort
property for each collection, which will be used instead of the built-in Payload default of-createdAt
.Beta Was this translation helpful? Give feedback.
All reactions