code: def sort_nicely(l):
      
      convert = lambda text: int(text) if text.isdigit() else text
      alphanum_key = lambda key: [convert(c) for c in re.split('([0-9]+)', key)]
      l.sort(key=alphanum_key)
docs: Sort the given list in the way that humans expect.