> How about a one liner?
> 
>     L.sort(key=lambda s: int(s.split('_')[1]))
> 
> (Which is not necessarily elegant, but it is short.)

I grant it a measure of elegance as well.

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

Reply via email to