C++ Custom Sort Solution with new test case clear
```\nclass Solution {\npublic:\n   static bool custsort(const string &A, const string& B){\n    string sa = A.substr(A.find(\' \') + 1);\n    string sb = B.subs
```\nclass Solution {\npublic:\n   static bool custsort(const string &A, const string& B){\n    string sa = A.substr(A.find(\' \') + 1);\n    string sb = B.substr(B.find(\' \') + 1);\n    if(isdigit(sa[0]))\n        return false;\n    else if(isdigit(sb[0]))\n        return true;\n       else if(sa.compare(sb)==0){\n           string fa=A.substr(0,A.find(\' \'));\n           string fb = B.substr(0,B.find(\' \'));\n           \n           return fa.compare(fb)<0;\n       }\n    return sa.compare(sb) < 0;\n}\n\nvector<string> reorderLogFiles(vector<string> &logs) {\n    stable_sort(logs.begin(), logs.end(), custsort);\n    return logs;\n    }\n\n};
['C']