Re: [Tutor] Sorting lists both ways at once and programmatically loading a variable.

2011-07-28 Thread Alan Gauld
Prasad, Ramit wrote: I have 2 questions. 1. Is there a way to do a reverse and a normal sort at the same time? I have a list of tuples (there are more than 2 elements in the tuples but I only want to sort by the first two). I want to sort in reverse for the first element (int) and in order for

Re: [Tutor] Sorting lists both ways at once and programmatically loading a variable.

2011-07-28 Thread Dave Angel
On 07/28/2011 07:05 PM, Prasad, Ramit wrote: I have 2 questions. 1. Is there a way to do a reverse and a normal sort at the same time? I have a list of tuples (there are more than 2 elements in the tuples but I only want to sort by the first two). I want to sort in reverse for the first elemen

[Tutor] Sorting lists both ways at once and programmatically loading a variable.

2011-07-28 Thread Prasad, Ramit
I have 2 questions. 1. Is there a way to do a reverse and a normal sort at the same time? I have a list of tuples (there are more than 2 elements in the tuples but I only want to sort by the first two). I want to sort in reverse for the first element (int) and in order for the second element (st