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('(\\d+)')
 return sorted(iterable, key=sortkey)

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 ( '(\\d+)' ) return sorted ( iterable , key = sortkey )
return human sorted list of strings .