C Solution
\nint cmpFunc(const char** a, const char** b)\n{\n    int ptrA = 0, ptrB = 0;\n    int sizeA = strlen(a[0]);\n    int sizeB = strlen(b[0]);\n    int cmpResult;\
```\nint cmpFunc(const char** a, const char** b)\n{\n    int ptrA = 0, ptrB = 0;\n    int sizeA = strlen(a[0]);\n    int sizeB = strlen(b[0]);\n    int cmpResult;\n    while(a[0][ptrA] != \' \') ptrA++;\n    ptrA++;\n    while(b[0][ptrB] != \' \') ptrB++;\n    ptrB++;\n    \n    if(isalpha(a[0][ptrA]) && isalpha(b[0][ptrB]))\n    {\n        cmpResult = strcmp(&a[0][ptrA], &b[0][ptrB]);\n        if(!cmpResult)\n        {\n            return(strcmp(a[0], b[0]));\n        }\n        else\n        {\n            return cmpResult;\n        }\n    }\n    else if(isalpha(a[0][ptrA]))\n    {\n        return -1;\n    }\n    else if(isalpha(b[0][ptrB]))\n    {\n        return 1;\n    }\n    else\n    {\n        return 0;\n    }\n}\n\nchar** reorderLogFiles(char** logs, int logsSize, int* returnSize) {\n    *returnSize = logsSize;\n    qsort(logs, logsSize, sizeof(char*), cmpFunc);\n    return logs;\n}\n```
['C']