Compare function not understood

Can you explain me how compare function works in each iteration for the above example. Not able to figure out properly

Hi Vikrant,

The sorting is based on randomised quick sort, the working algorithm has been properly coverted up in a serparate video, u might watch that so better understanding.

Basically randomized quick sort is based on the reducing the chances of worst case of quick sort

In case u are not able to find the video do reply