Python: Faster than 96% and Memory less than100%
```class Solution:\n    def reorderLogFiles(self, logs: List[str]) -> List[str]:\n        digitLogs= []\n        letterLogs= []\n        for log in logs:\n     
```class Solution:\n    def reorderLogFiles(self, logs: List[str]) -> List[str]:\n        digitLogs= []\n        letterLogs= []\n        for log in logs:\n            words = log.split(\' \')\n            if words[1].isdigit():\n                digitLogs.append(log)\n            else:\n                letterLogs.append(log)\n        letterLogs.sort(key = lambda x: x.split(\' \')[0])\n        letterLogs.sort(key = lambda x: x.split(\' \')[1:])\n        letterLogs.extend(digitLogs)\n        return letterLogs
['String', 'Python']