easy understand python solution beat 95% time and 100% space. use lambda sort
\n\ndef reorderLogFiles(self, logs: List[str]) -> List[str]:\n        letters=[]\n        digits=[]\n        for log in logs:\n            if log[-1].isdigit():
![image](https://assets.leetcode.com/users/jefferyzzy/image_1579082259.png)\n```\ndef reorderLogFiles(self, logs: List[str]) -> List[str]:\n        letters=[]\n        digits=[]\n        for log in logs:\n            if log[-1].isdigit():\n                digits.append(log)\n            else:\n                letters.append(log)\n        letters = sorted(letters, key=lambda letter: (letter.split()[1:],letter.split()[0]))\n        return letters+digits\n```
['Python', 'Python3']