How to make an order case insensitive

I am starting to work with MongoDB and NoRM and I would like to make orderBy which is not sensitive to Ccase, is this possible?

Thanks for the help!

+3
source share
1 answer

It seems impossible (read http://groups.google.com/group/mongodb-user/browse_thread/thread/1491cfb04ec706b3/c2050f57daea3836?lnk=gst&q=insensitive#c2050f57daea3836 ).

You can save the value twice, once in a mixed case and once in uppercase. You can index the uppercase column.

0
source

Source: https://habr.com/ru/post/1751310/


All Articles