om_code.omgenutils.natural_keys#

natural_keys(text)[source]#

Used to sort a list of strings by the numeric values in the list entries.

Eg sorted(list, key= natural_keys)

Arguments – text: a string (but see above example)