My answer is 7 15

I think the first comparison is done on the basis of 2nd element of pair and the higher will be at the top. If both have 2nd element the same then the pair having a lower value of the first element will be at the top.

Refer this discussion Can you explain the output
and Need an explanation on the output…how the compare function is working?