py310-natsort

v 8.4.0 Updated: 1 year, 6 months ago

Natural sorting for Python

When you try to sort a list of strings that contain numbers, the 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.

https://github.com/SethMMorton/natsort

To install py310-natsort, paste this in macOS terminal after installing MacPorts

sudo port install py310-natsort

Add to my watchlist

Installations 0
Requested Installations 0