logo       

Re: Sorting: msg#00075

lang.smalltalk.squeak.beginners

Subject: Re: Sorting


> 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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise