[issue12334] Strange sort error

2011-06-14 Thread Mark Dickinson
Mark Dickinson added the comment: ... and you probably want sorted(lst0, key=len, reverse=True) anyway. :-) -- nosy: +mark.dickinson ___ Python tracker ___ ___

[issue12334] Strange sort error

2011-06-14 Thread Reinhard Engel
Reinhard Engel added the comment: Sorry, oversaw silly error in comparison! -- resolution: -> invalid status: open -> closed ___ Python tracker ___

[issue12334] Strange sort error

2011-06-14 Thread Reinhard Engel
New submission from Reinhard Engel : # Strange sort error # lst1 and lst 2 produce different results, but should be same # lst1 should sort by length of items, but doesn't, lst2 does! lst0 = ['ab-get-ratings-max', 'ab-get-ratings-min', 'ab-rate-position', 'accum', 'add-cops', 'add-new-dice', 'a