All test cases doesn't pass

my code doesn’t pass one test case. please check

it is mentioned in the question that if salary is equal then the names should be sorted in lexicographical order and you need to include that in myCompare function
Corrected Code