def resorted(values):
if not values:<EOL><INDENT>return values<EOL><DEDENT>values = sorted(values)<EOL>first_word = next(<EOL>(cnt for cnt, val in enumerate(values)<EOL>if val and not val[<NUM_LIT:0>].isdigit()),<EOL>None<EOL>)<EOL>if first_word is None:<EOL><INDENT>return values<EOL><DEDENT>words = values[first_word:]<EOL>numbers = values[:first_word]<EOL>return words + numbers<EOL>
Sort values, but put numbers after alphabetically sorted words.

This function is here to make outputs diff-compatible with Aleph.

Example::
    >>> sorted(["b", "1", "a"])
    ['1', 'a', 'b']
    >>> resorted(["b", "1", "a"])
    ['a', 'b', '1']

Args:
    values (iterable): any iterable object/list/tuple/whatever.

Returns:
    list of sorted values, but with numbers after words