Natural sorting for python
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.
$
pkg install py311-natsortOrigin
devel/py-natsort
Size
355KiB
License
MIT
Maintainer
yuri@FreeBSD.org
Dependencies
1 packages
Required by
13 packages