import re


def sortNumerically(data):
    """
    Sort the given data in the way that humans expect.

    >>> data=['Joint_1','Joint_2','Joint_9','Joint_10','Joint_11','Joint_12']
    >>>
    >>> # standard gives us:
    >>> data.sort()
    >>> ['Joint_1', 'Joint_10', 'Joint_11', 'Joint_12', 'Joint_2', 'Joint_9']
    >>>
    >>> # sortNumerically gives us:
    >>> sortNumerically(data)
    >>> ['Joint_1', 'Joint_2', 'Joint_9', 'Joint_10', 'Joint_11', 'Joint_12']
    """
    convert = lambda text: int(text) if text.isdigit() else text
    alphanum_key = lambda key: [convert(c) for c in re.split('([0-9]+)', key)]
    return sorted(data, key=alphanum_key)