Easy to understand 99.71% Python Solution
\nclass Solution:\n    def reorderLogFiles(self, logs: List[str]) -> List[str]:\n        letLogs = []\n        digLogs = []\n        \n        for log in logs:\
```\nclass Solution:\n    def reorderLogFiles(self, logs: List[str]) -> List[str]:\n        letLogs = []\n        digLogs = []\n        \n        for log in logs:\n            curLog = log.split(" ", 1)\n            if curLog[1][0].isdigit():\n                # Simply store digLogs in order as we see them\n                digLogs.append(log)\n            else:\n                # Store letter logs in tuple of sort priority - (contents, tag)\n                letLogs.append((curLog[1], curLog[0]))\n                \n        letLogs.sort()\n        \n        # rejoin letLogs properly and add digLogs to end       \n        return [" ".join([log[1], log[0]]) for log in letLogs] + digLogs\n```
['Python']