Sorting strings while ignoring case

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?

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.

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