What is ‘secondary sort’ in Hadoop, and how does it work?

Secondary sorting is non-trivial and it’s easier to explain it with the help of some pictures. First things first let’s look at the definition Secondary sort is a technique that allows the MapReduce programmer to control the order that the values show up within a reduce function call. Now what the heck does that mean