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

Query sorting -- default descending or ascending? Also, should we error if invalid input? #42

Open
julie-sullivan opened this issue Jan 21, 2020 · 0 comments
Assignees
Labels

Comments

@julie-sullivan
Copy link
Contributor

julie-sullivan commented Jan 21, 2020

  1. I notice in MongoDBQueryUtils.java that the default sort is descending. I assume there was a use case for this? Or can we make the default ascending?
  2. Should we throw an error if a user tries to sort by a value we are not expecting? I see that the IF statement checks for valid values for "ascending", but if none are found it just defaults to DESC.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants