It lets you do amazing things, whether you want to sort your marks from best to worst or to arrange your friends from most annoying to least annoying, you can do that with the help of priority queues.
You can put something in your priority queue and get back the results in sorted order or more precisely, according to each element's relative priority.
If you have worked with java previously then you definitely would have heard about this amazing data structure called a Priority queue and also a special something called a comparator.