On Nov 2, 3:36 pm, "Andrew Koenig" <[EMAIL PROTECTED]> wrote:
> <[EMAIL PROTECTED]> wrote in message
>
> news:[EMAIL PROTECTED]
>
> > I would want to sort by name first, then sub sort by location. Any
> > ideas? Thanks!
>
> In Python 2.3 and later, sorting is stable -- so you can sort successively
> in reverse order.  In other words, sort the list by location, then sort the
> sorted result again by name and you should get what you want.

That was it. I must of made a mistake when I tried it before. Thanks!

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to