On Oct 2, 2006, at 12:20 PM, [EMAIL PROTECTED] wrote:
'd love to see something like a standard Comparable interface too, but there are seriously ugly devils in the details of that. (Just think: what exactly would be the parameter types of the Operator_Compare function it defines?)
But why would sorting an object array (which is what we are speaking of here) have to use operator convert under the hood? Would it likely be that big a deal to make object sorting a special case directly call the Comparable Compare method?
But meanwhile, SortWith is pretty handy and, apparently, underappreciated. :)
It's not hard to use for relatively simple sorts, but if the object array is large and involes 2 or 3 object fields, having to do a first pass to create the string array could be relatively costly, no?
Or would that likely not be significant because of the overhead of calling the Compare method each time in the sort?
- Karen _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://support.realsoftware.com/listarchives/lists.html>
