(values: Iterable)
return sorted(values, key=natural_keys)
Sort values with natural sort or human order - [sth1, sth2, sth10] or
    [1, 2, 10]

    Parameters
    ----------
    values
        List with values to sort

    Returns
    -------
    List with sorted values
Sort values with natural sort or human order - [sth1, sth2, sth10] or
    [1, 2, 10]
Sort values with natural sort or human order - [ sth1 sth2 sth10 ] or [ 1 2 10 ]
def natural_sorted(values: Iterable) -> List:
    """
    Sort values with natural sort or human order - [sth1, sth2, sth10] or
    [1, 2, 10]

    Parameters
    ----------
    values
        List with values to sort

    Returns
    -------
    List with sorted values
    """
    def atoi(text):
        return int(text) if text.isdigit() else text

    def natural_keys(element):
        """
        alist.sort(key=natural_keys) or sorted(alist, key=natural_keys) sorts
        in human order
        """
        if isinstance(element, (str, bytes)):
            return [atoi(c) for c in re.split(r'(\d+)', element)]
        else:
            return element

    return sorted(values, key=natural_keys)
def natural_sorted ( values : Iterable ) -> List : def atoi ( text ) : return int ( text ) if text . isdigit ( ) else text def natural_keys ( element ) : """
        alist.sort(key=natural_keys) or sorted(alist, key=natural_keys) sorts
        in human order
        """ if isinstance ( element , ( str , bytes ) ) : return [ atoi ( c ) for c in re . split ( r'(\d+)' , element ) ] else : return element return sorted ( values , key = natural_keys )