On Wed, 23 Dec 2009, Randal L. Schwartz wrote:
"Adrian" == Adrian Kuhn <akuhn@iam.unibe.ch> writes:
Adrian> What bugs me is that #sortBy: does not what it says. I would expect that
Adrian> aCollection sortBy: [ :each | each name ]
Adrian> does the same as
Adrian> aCollection sort: [ :a :b | a name <= b name ]
And if you could make "aCollection sortBy: #name" also do the same, bonus points!
Well, squeak trunk has this, try: #(1 2 3) sort: #>=. Levente
-- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project