Removing the minimum, and heap sort
Removing the minimum moves the last item to the root and sifts it down, swapping with the smaller child, in $O(\log n)$, so a priority queue serves the most urgent item fast and $n$ removals sort in $O(n \log n)$.
Removing the minimum moves the last item to the root and sifts it down, swapping with the smaller child, in $O(\log n)$, so a priority queue serves the most urgent item fast and $n$ removals sort in $O(n \log n)$.