code: def natural_sorted(iterable):
      def sortkey(x):
          return [(int(c) if c.isdigit() else c) for c in re.split(numbers, x)]
      numbers = re.compile(r'(\d+)')
      return sorted(iterable, key=sortkey)