code: def naturalize_string(key):
      
      return [int(text) if text.isdigit() else text.lower()
              for text in re.split(numregex, key)]
docs: Analyzes string in a human way to enable natural sort
  
      :param nodename: The node name to analyze
      :returns: A structure that can be consumed by 'sorted'