Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!lust.ihug.co.nz!ihug.co.nz!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.lang.java.programmer Subject: Re: Did the sort do anything? Followup-To: comp.lang.java.programmer Date: Fri, 20 May 2011 22:37:12 +1200 Organization: Geek Central Lines: 19 Message-ID: References: <6fe88262-fcb1-4cea-8d4b-97617b522c63@j31g2000yqe.googlegroups.com> NNTP-Posting-Host: 118-92-95-178.dsl.dyn.ihug.co.nz Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: lust.ihug.co.nz 1305887833 6863 118.92.95.178 (20 May 2011 10:37:13 GMT) X-Complaints-To: abuse@ihug.co.nz NNTP-Posting-Date: Fri, 20 May 2011 10:37:13 +0000 (UTC) User-Agent: KNode/4.4.7 Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4349 In message <6fe88262- fcb1-4cea-8d4b-97617b522c63@j31g2000yqe.googlegroups.com>, Robert Klemme wrote: > On 20 Mai, 08:49, Lawrence D'Oliveiro central.gen.new_zealand> wrote: > >> In message , Michael Wojcik wrote: >> >> > On the other hand, when sorts are used in most modern applications, >> > they're comparing keys that are located elsewhere in memory and >> > probably invoking a user-supplied comparison function ... >> >> Which is why Python, for example, has dropped the idea of a user >> comparison, and emphasized a user key function instead. > > Ruby solves this quite elegantly, you have all the choices: So did Python, until it turned out some of them weren’t worth using.