[Pharo-dev] about SortFunctions
dionisiydk at gmail.com
Tue Nov 7 07:47:33 EST 2017
2017-11-07 13:11 GMT+01:00 Thierry Goubier <thierry.goubier at gmail.com>:
> Now, if you explained me something like that:
> people nilFirst ascending
> Then I'd be more convinced. Or even
> people sorted nilFirst ascending (if one would prefer restricting the
> implementations of #nilFirst).
I think we can easily support it. But of course it will work only for
objects which understand #threeWayCompareTo:. Now it looks like
#(one nil two) sorted: #yourself ascending undefinedFirst.
And I prefer this version instead of extending collection with new sorting
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pharo-dev