R
Rhamphoryncus
Duncan said:Very Hard? Several key functions have been suggested on this thread.
Given that 2.x only sorts most but not all types and that the sort is
only guaranteed to be consistent within a session, as I remember, I
suspect you can choose or write something at least as good for your
purposes.
It's actually worse than that: A different input within a single
session will produce different results. Sorting relies on
transitivity, and comparing such types doesn't provide it.
You might as well comment out the sort and call it good. That's what
you really had in 2.x. It was close enough most of the time to *look*
right, yet in truth it silently failed. 3.0 makes it an explicit
failure.
(There were some situations that worked, but they're exceptional. You
can still do them now, but you need to be explicit (via a key function
or a special singleton.))