Java Simple Solution - Time 99.69%
\nclass Solution {\n    public String[] reorderLogFiles(String[] logs) {\n        \n        Arrays.sort(logs, (a,b)->{\n            int identA = a.indexOf(" ") 
```\nclass Solution {\n    public String[] reorderLogFiles(String[] logs) {\n        \n        Arrays.sort(logs, (a,b)->{\n            int identA = a.indexOf(" ") + 1;\n            int identB = b.indexOf(" ") + 1;\n\n            boolean isLetterA = Character.isLetter(a.charAt(identA));\n            boolean isLetterB = Character.isLetter(b.charAt(identB));\n            if(isLetterA && isLetterB){\n                int cmp = a.substring(identA).compareTo(b.substring(identB));\n                if(cmp != 0) return cmp;\n                \n                return a.compareTo(b);\n            }else if(isLetterA && !isLetterB){\n                return -1;\n            }else if(!isLetterA && isLetterB){\n                return 1;\n            }else return 0;\n            \n        });\n        \n        return logs;\n    }\n}\n```
['Array', 'Sorting', 'Java']