sorting a list of lists

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Aug 28 00:36:37 EDT 2007


En Mon, 27 Aug 2007 15:41:15 -0300, iapain <iapain at gmail.com> 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




More information about the Python-list mailing list