Hi Raymond. I appreciate your reply. Yes, this is exactly what I was
looking for. The syntax I had been trying to work out myself was not
correct and not giving me the right thing. Many thanks for your help -
this works just the way I wanted.
David
On Tuesday, March 8, 2005, at 03:46 PM, Raymo
[David Pratt]
> I am wanting to
> extend this with a better comparison expression so that it would sort
> on one key as primary, a second key as secondary sort , and maybe even
> a third as tertiary.
The simplest approach is to rely on Python's sort being stable. First sort on
the tertiary key, t