简体   繁体   中英

How to do an order by not case sensitive

I'm starting to work with MongoDB and NoRM and I would like to do an orderBy that is not Ccase sensitive, is it possible?

Thanks for the help!

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

You can store the value twice, once in mixed casing and once in uppercase. You can index the column with uppercase values.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM