orderBy

16 views
Skip to first unread message

Joe Stein

unread,
Jun 25, 2012, 10:00:23 PM6/25/12
to rogue...@googlegroups.com
quick question is there a way using orderBy so that A and a are treated the same, case insensitive?

Jason Liszka

unread,
Jun 26, 2012, 9:45:10 AM6/26/12
to rogue...@googlegroups.com
Mongo doesn't support case-insensitive sorting, so no, there's no way to do it with rogue.

Joe Stein

unread,
Jun 26, 2012, 10:05:12 AM6/26/12
to rogue...@googlegroups.com
ok thanks, it makes me cringe having to store the field i want to sort by as another field in my document with the chars set toLowerCase() but such are things, se la vi
--

Jason Liszka

unread,
Jun 26, 2012, 10:07:10 AM6/26/12
to rogue...@googlegroups.com
Yep, just a mongo limitation... you could also sort on the client side.

Joe Stein

unread,
Jun 26, 2012, 10:09:13 AM6/26/12
to rogue...@googlegroups.com
good idea, I like that way better, thanks!
Reply all
Reply to author
Forward
0 new messages