sorting a tuple
junaftnoon at nospamplzyahoo.com
Wed Nov 15 02:27:39 CET 2000
<etsang at my-deja.com> wrote in message news:8usna1$2fo$1 at nnrp1.deja.com...
> Can anyone tell me if there is any library function to srot a tuple ind
> ecending order? if not, can someone supply the code???
> Sent via Deja.com http://www.deja.com/
> Before you buy.
You can't sort a tuple IN PLACE. You should copy it to a list and proceed.
There are several possible ways doing the descending order sorting and
this is one of them:
p.s. You could reverse the list with the built-in reverse() instead of using
More information about the Python-list