[Newbies] sorting elements in OrderedCollection
Randal L. Schwartz
merlyn at stonehenge.com
Sun Mar 7 22:30:30 UTC 2010
>>>>> "sergio" == sergio 101 <sergiolist at village-buzz.com> writes:
sergio> if i have people, which is a list of person(s), how would i spit out a
sergio> list sorted by last name?
collection asSortedCollection: [:a :b | a lastName <= b lastName ]
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
More information about the Beginners