[Newbies] Sorting

Chris Cunnington cunnington at sympatico.ca
Thu May 17 17:29:14 UTC 2007


> Try ('The cow jumped over the mon' sortBy: [:x :y | x < y]) as: String.

That one's pretty cool. Sometimes I've tried things and you get a nasty
array of characters ($a $b $c). That's an unpleasant answer. This solution
puts it back into the form I expected initially. 'abc' Groovy.

Chris 



More information about the Beginners mailing list