parameters: (self, logs)
return_statement: return sorted(logs, key=helper)
docstring: :type logs: List[str]
          :rtype: List[str]
docstring_summary: :type logs: List[str]
          :rtype: List[str]
docstring_tokens: : type logs : List [ str ] : rtype : List [ str ]
function: def reorderLogFiles(self, logs):
          """
          :type logs: List[str]
          :rtype: List[str]
          """
          def helper(log):
              _id, rest = log.split(" ", 1)
              return (0, rest, _id) if rest[0].isalpha() else (1,)
  
          return sorted(logs, key=helper)
function_tokens: def reorderLogFiles ( self , logs ) : def helper ( log ) : _id , rest = log . split ( " " , 1 ) return ( 0 , rest , _id ) if rest [ 0 ] . isalpha ( ) else ( 1 , ) return sorted ( logs , key = helper )