[Pharo-dev] about SortFunctions

Denis Kudriashov 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
messages.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20171107/140c4519/attachment-0002.html>


More information about the Pharo-dev mailing list