I can apply most sorting algoritmes in a single dim. array, not sure how to go about this in a 2D array. Bubblesort seems to be the simplest solution.
Convention then goes as follows?[0,0] [0,1] [0,2] [0,3][1,0] [1,1] [1,2] [1,3][2,0] [2,1] [2,2] [2,3]