Sort the elements of a (rectangular) two-dimensional array. For example, if the original array is
4 9 7 8 4 8 4 2 0 9 5 3
change the array to contain
0 2 3 4 4 4 4 5 7 8 8 9
Adapt the selection sort algorithm.
In the draft, just implement minimumPosition
.