Easily understandable Python Code!!
Runtime: 24 ms, faster than 99.65% of Python3 online submissions for Reorder Data in Log Files.\nMemory Usage: 14.3 MB, less than 87.33% of Python3 online submi
Runtime: 24 ms, faster than 99.65% of Python3 online submissions for Reorder Data in Log Files.\nMemory Usage: 14.3 MB, less than 87.33% of Python3 online submissions for Reorder Data in Log Files.\n\n```\nclass Solution:\n    def reorderLogFiles(self, logs: List[str]) -> List[str]:\n        if not logs:\n            return \n        logs_l = []\n        logs_d = []\n        logs_sorted = []\n        \n        for log in logs:\n            if log.split()[1].isdigit():\n                logs_d.append(log)\n            else:\n                logs_l.append(log)\n                m = log.split()[1:]\n                m = \' \'.join(m)\n                print(m)\n                logs_sorted.append(m)\n        logs_sorted, logs_l = zip(*sorted(zip(logs_sorted, logs_l)))\n        return list(logs_l) + logs_d\n```\n\nIf (you get it):\n\treturn(Upvote)\nelse:\n\treturn(Comment for more explanations)\n\t\n\t
['Python', 'Python3']