[Python] Straightforward
\nclass Solution:\n    def reorderLogFiles(self, logs: List[str]) -> List[str]:\n        def rank(s):\n            s = s.split()\n            return " ".join(s[
```\nclass Solution:\n    def reorderLogFiles(self, logs: List[str]) -> List[str]:\n        def rank(s):\n            s = s.split()\n            return " ".join(s[1:]+[s[0]])\n        let = [i for i in logs if i.split()[1].isalpha()]\n        dig = [i for i in logs if i.split()[1].isnumeric()]\n        return sorted(let, key=rank) + dig\n```
[]