I want to use the built-in qsort function (stdlib.h) to sort a two dimensional array say arr[10][2];

could someone help me write the compare function if arr[m][] goes before arr[n][] if arr[m][0]<arr[n][0]