-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Add option to perform case-insensitive sort when using "ascending()" or "descending()" on a text field #8119
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
Comments
Thanks for opening this issue!
|
Please do not post your issue in multiple places at once. I removed your posts in other threads. |
The option already exists. Given the upvotes on #3973 (comment) I would assume that it works. It's a parameter that you can pass, see
I just noticed that there are no simple tests in |
I'm closing this as it does not seem to be a Parse Server issue.
|
Hey thanks for the feedback! We accepted the case-sensitive search for now so I'll try to look into your suggestions when I have more free time. |
New Feature / Enhancement Checklist
Current Limitation
The limitation is that I cannot use
ascending()
ordescending()
to order results in a case-insensitive manner. Consider if there are 4 available results:Using
ascending('name')
will cause them to be ordered as:Feature / Enhancement Description
The idea is to give devs the option to make
ascending()
anddescending()
search with or without case sensitivity. It could be implemented by a config option, for instanceascending('name', { ignoreCase: true })
;Example Use Case
Please see the example given above.
Alternatives / Workarounds
As far as I'm aware, right now the dev has to perform the case-insensitive sort manually after getting the results, which is redundant.
3rd Party References
Not that I'm aware of. I also haven't used any other tool like
parse-server
before now, so my experience of such tools is limited.The text was updated successfully, but these errors were encountered: