Steven Bethard a écrit : > Bruno Desthuilliers wrote: > >> If you want to prevent this from happening and don't mind creating a >> copy of the list, you can use the sorted() function with the key and >> reverse arguments and operator.itemgetter: >> (snip) > > You don't need to use sorted() -- sort() also takes the key= and > reverse= arguments:: > Yeps - thanks for the reminder. -- http://mail.python.org/mailman/listinfo/python-list
- Re: Sorting a list Bruno Desthuilliers
- Re: Sorting a list John Salerno
- Re: Sorting a list Bruno Desthuilliers
- Re: Sorting a list Ben Finney
- Re: Sorting a list Steven D'Aprano
- Re: Sorting a list John Salerno
- Re: Sorting a list John Salerno
- Re: Sorting a list John Salerno
- Re: Sorting a list Bruno Desthuilliers
- Re: Sorting a list Steven Bethard
- Re: Sorting a list Bruno Desthuilliers
- Re: Sorting a list Duncan Booth
- Re: Sorting a list John Salerno
- Re: Sorting a list Bruno Desthuilliers
- Re: Sorting a list John Salerno
- Re: Sorting a list Bruno Desthuilliers
- RE: Sorting a list Carroll, Barry