7f72eed9d7
results that you expect. Natsort provides a function natsorted() that helps sort lists "naturally", either as real numbers (i.e. signed/unsigned floats or ints), or as versions. WWW: https://github.com/SethMMorton/natsort PR: 205563 Submitted by: Yuri Victorovich <yuri@rawbw.com>
6 lines
302 B
Text
6 lines
302 B
Text
Normal python sort algorithm sorts lexicographically, so you might not get the
|
|
results that you expect. Natsort provides a function natsorted() that helps sort
|
|
lists "naturally", either as real numbers (i.e. signed/unsigned floats or ints),
|
|
or as versions.
|
|
|
|
WWW: https://github.com/SethMMorton/natsort
|