Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding info about reverse sorting to the doc #298

Open
MrModest opened this issue Jan 9, 2024 · 1 comment
Open

Adding info about reverse sorting to the doc #298

MrModest opened this issue Jan 9, 2024 · 1 comment

Comments

@MrModest
Copy link

MrModest commented Jan 9, 2024

In the doc, there's no info on how to do reverse sorting.

Only after searching through the source code, I figured out that I need to add minus (-) before field name.

It would be great to have this info in the doc, so other people won't have to go to the source for this simple info.

Please add this info in these two places:

@dsagal
Copy link
Member

dsagal commented Jan 9, 2024

Good point. Another place where it's very helpful to be aware of is for lookupOne. Since lookupOne returns the first of matching records, something like sort_by="-Date" can be used to find the latest of matching records.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants