How to sort a bunches of 2D arrays
<p>I have a 2D array of p*q. I want to sort this array in bunches of 2D arrays of m*n where p>m and p=km and q>n and q=kn
and where k is and integer.
for example
i have array of 16*16 and i have divided it into 2d arrays of 4*4 now i want to sort these 4*4 arrays independently. 
Which algorithm can i use to sort these in place.means without using extra memory.</p>
