On Fri, Aug 1, 2014 at 11:31 AM, Esteban A. Maringolo
<emaringolo@gmail.com> wrote:
Exactly!!!
And... what is most important for me, is that to the MultipleSortCriteria I would like to ask #sortBlock :)
To sort a collection with such an object it only has to answer #value:value:, so is there a special reason you want to generate a block from it?
Because generating such blocks might be a bit cumbersome and the object already does the job, no?
Thanks Esteban for better explaining what I was looking for ;)
you could add something like:
sorter := MultipleSortCriteria new
add: #lastName;
add: #firstName ascending: false nullsFirst: true.
aCollection asSortedCollection: sorter.
Regards!
--
Mariano
http://marianopeck.wordpress.com