Easy Python | Reorder Data in Log Files
\ndef reorderLogFiles(self, logs: List[str]) -> List[str]:\n        \n        nums = list()\n        alp = list()\n        \n        for entry in logs:\n       
```\ndef reorderLogFiles(self, logs: List[str]) -> List[str]:\n        \n        nums = list()\n        alp = list()\n        \n        for entry in logs:\n            idf, log = entry.split(\' \',1)\n            \n            if log[0].isdigit():\n                nums.append(entry)\n            else:\n                alp.append(entry)\n        \n        alp.sort(key = lambda x: (x.split(\' \',1)[1], x.split(\' \',1)[0]))\n        \n        return alp+nums\n```
['Python']