import re


def alphanum_sort(l):
    """Sort the given list in ascending order the way that humans expect.

    i.e For a list l containing `["5", "24", "10"]`, the function sorts it as
    `["5", "10", "24"]` instead of `["10", "24", "5"]` as would Python List
    sort() method.
    """
    # key to use for the sort
    def convert(text):
        return int(text) if text.isdigit() else text

    def alphanum_key(key):
        return [convert(c) for c in re.split("([0-9]+)", key)]

    l.sort(key=alphanum_key)