Python 3 using sort key [nothing fancy] 98% faster
\nclass Solution:\n    def reorderLogFiles(self, logs: List[str]) -> List[str]:\n        digits=[]\n        letters=[]\n        for i in logs:\n            char
```\nclass Solution:\n    def reorderLogFiles(self, logs: List[str]) -> List[str]:\n        digits=[]\n        letters=[]\n        for i in logs:\n            chars = i.split()\n            if chars[1].isdigit():\n                digits.append(i)\n            else:\n                letters.append(i)    \n        letters.sort(key=lambda letters: (letters.split()[1:], letters.split()[0]))   \n        return letters+digits\n```
[]