Announcing SortCriteria extension of SortedCollection

Peter William Lount peter at smalltalk.org
Fri Jul 16 20:55:22 UTC 1999


Hi,

I've wanted a simpler way to write complex sort blocks that sort multiple
attributes on objects so I wrote an object that mimics a sort block's
"value:value:" protocol. It's called a SortCriteria and it contains as many
SortCriteriaColumns as you want or need. It can sort these columns (or
attributes) in any sequence you wish and it can sort each column with it's
own independent ascending or decending order.

It has been used successfully in a number of production applications. I
think that it adds a very powerful and easy to use capability to Smalltalk.
Try it out for yourself.

You can check it out at:
http://www.smalltalk.org/components/SortCriteria.html.

If you wish to port it to other Smalltallks please submit your port changes
and I'll post them on the web site.

All the best,

Peter William Lount
peter at smalltalk.org
http://www.smalltalk.org

p.s. It would be great to include this in the base Squeak image. Dan, would
it be possible for it to make it into Squeak 2.5 ?





More information about the Squeak-dev mailing list