Given a 2D array, how to argsort its elements and obtain a list of the coordinates of the array elements from the lowest to highest.
For example, given: