Pythonic list reordering

Ben Racine i3enhamin at gmail.com
Fri Apr 9 00:52:08 CEST 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