simple Python3 solution beats 99%
\nclass Solution:\n    def reorderLogFiles(self, logs):\n        """\n        :type logs: List[str]\n        :rtype: List[str]\n        """\n        digits = []
```\nclass Solution:\n    def reorderLogFiles(self, logs):\n        """\n        :type logs: List[str]\n        :rtype: List[str]\n        """\n        digits = []\n        letters = []\n\t\t# divide logs into two parts, one is digit logs, the other is letter logs\n        for log in logs:\n            if log.split()[1].isdigit():\n                digits.append(log)\n            else:\n                letters.append(log)\n                \n        letters.sort(key = lambda x: x.split()[1])            #when suffix is tie, sort by identifier\n\t\tletters.sort(key = lambda x: x.split()[1:])           #sort by suffix\n        result = letters + digits                                        #put digit logs after letter logs\n        return result\n\n```
[]