Sorting strings while ignoring case


(Michael Beeson) #1

Hey guys! I noticed that when I sort results by a string, the term “mango” appears after “Zebra”, because in ASCII lowercase values are higher than uppercase. But for my purposes I’d rather the sort be case insensitive. Is there an obvious way to do this that I’ve just missed?


(Michel Conrado) #2

I don’t think so. The best you can do is to do something like toUpperCase() in a func just to the first letter, before any mutation.


(system) closed #3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.