Python || Easy Solution || Sorting
\n    \n\tdef reorderLogFiles(self, logs: List[str]) -> List[str]:\n        num=[]\n        st=[]\n        for x in logs:\n            if x[-1].isdigit():\n    
\n    \n\tdef reorderLogFiles(self, logs: List[str]) -> List[str]:\n        num=[]\n        st=[]\n        for x in logs:\n            if x[-1].isdigit():\n                num.append(x)\n            else:\n                st.append(x)\n    \n        st.sort(key = lambda x : x.split()[0])\n        st.sort(key = lambda x : x.split()[1:])\n\n        return st+num
['Sorting', 'Python']