Uh oh!
There was an error while loading. Please reload this page.
fix(sort): use -1 for descending same as mongo syntax - #1176
Merged
Conversation
✅ Deploy Preview for nuxt-content ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
atinux
commented
May 30, 2022
Member
Let's merge quickly since few people are using sorts for now. Can we plan a patch release today or tomorrow? |
atinux
approved these changes
May 30, 2022
farnabaz
commented
May 30, 2022
MemberAuthor
There is also some bug fixes in the main branch, we will plan a release for tomorrow |
enfipy
commented
Jul 18, 2022
Guys, please update the documentation on this one. I spent an hour figuring things out 🙏 |
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 Linked issue
❓ Type of change
📚 Description
The idea is to match sort syntax with mongo db syntax. Mongodb uses
1for ascending and-1for descending sorts.This PR will introduce a breaking change in sorting behavior. Former this content module used
0for descending sort.📝 Checklist