[Newbies] Case insensitive string sort.

Blake blake at kingdomrpg.com
Fri Mar 2 00:58:59 UTC 2007


I'm using this to sort a string case-insensitively:

'abcCBA' sortBy: [:a :b | a asUppercase < b asUppercase]

It works fine.

My question is, am I missing some built-in feature that does this, or is  
this idiomatic?

	===Blake===


More information about the Beginners mailing list