Pythonic list reordering

Ben Racine i3enhamin at gmail.com
Thu Apr 8 18:52:08 EDT 2010


I have a list...

['dir_0_error.dat', 'dir_120_error.dat', 'dir_30_error.dat', 'dir_330_error.dat']

I want to sort it based upon the numerical value only.

Does someone have an elegant solution to this? 

Thanks,
Ben R.


More information about the Python-list mailing list