Sort game run error in 3 out of 4 test cases


i am getting run error in 3 out of 4 test cases. can anyone help me in this

Try to do this question using pair , by taking pair of string and int, and then you can use your myCompare function to generate the desired result.