natural_sort#

natural_sort(list_to_sort)[source]#

Sort a list of strings or in alphanumeric order.

Return type:

list

Parameters

list_to_sort: A list of strings or pathlib.Path objects to sort naturally

Returns

list: A list of strings in alphanumeric order