En Mon, 27 Aug 2007 15:41:15 -0300, iapain <[EMAIL PROTECTED]> escribi�:
>> Taking advantage of stable sorting is totally not a hack. The OP just >> tried >> the two sorting steps in the wrong order. > > I didnt say not to use stable sorting, but write a generic function > and hacky code. It is always better to adopt a generic approach. Sorting on multiple keys from last to first has been the "standard" and "generic" approach even before computers existed. Hollerith punched cards "processors" did it that way around 1890. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list