I was implementing a custom compare function for priority queue and saw a difference between the compare function of sort and priority queue