Sort game(sanjus employees)

none of the test cases are getting passes

Hi @mehak61
You were getting wrong answer because you were not comparing string in the correct way.
p2.first>p1.first;
This is not sufficient to sort string. Instead you have to create a bool operator> which returns back which string is bigger. And also according to the constraints you have to make emp[100000].(one extra zero needed because n<10^5)

Here is your corrected code, have a look :

Hi @Aayush
I’m unable to see the code youve corrected. Please save and resend it.
Thankyou.