parameters: (l)
return_statement: return sorted(l, key=alphanum_key)
docstring: From https://stackoverflow.com/a/4836734
docstring_summary: From https://stackoverflow.com/a/4836734
docstring_tokens: From https : // stackoverflow . com / a / 4836734
function: def natural_sort(l):
      """From https://stackoverflow.com/a/4836734
      """
      convert = lambda text: int(text) if text.isdigit() else text.lower()
      alphanum_key = lambda key: [convert(c) for c in re.split('([0-9]+)', key)]
      return sorted(l, key=alphanum_key)
function_tokens: def natural_sort ( l ) : convert = lambda text : int ( text ) if text . isdigit ( ) else text . lower ( ) alphanum_key = lambda key : [ convert ( c ) for c in re . split ( '([0-9]+)' , key ) ] return sorted ( l , key = alphanum_key )