Apparently sort: is not understood by SortedCollection :(
And sortBlock: is not understood by ArrayedCollection subclasses :(
So this is cool OrderedCollection does not understand sort:
Could we dare to fix that? Does anybody have a solution?
Stef
ArrayedCollection>>sort: aSortBlock
"Sort this array using aSortBlock. The block should take two arguments
and return true if the first element should preceed the second one."
self
mergeSortFrom: 1
to: self size
by: aSortBlock
SortedCollection>>sortBlock: aBlock
"Answer an instance of me such that its elements are sorted according
to
the criterion specified in aBlock."
^(super new: 10) sortBlock: aBlock
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project