Sort game program

https://ide.codingblocks.com/s/246362 sir can u expaline my the compair funtion of this code i am not able to get why we are using it like this

@anuragavm123 if both strings have same val then sort acc to string in ascending else sort in descending order of val as per question.
i hope its cleared if yes dont forget to mark it as resolved and hit like :smiley:

1 Like

Thank u sir my doubt is resolved