Sorry, I still don't know what you mean. Can you give an example of a 3 dimensional array, and how you want to sort it?
For example, if you declare int a;, that is a three dimensional array. Now let's imagine you fill it with random values, how do you want them sorted? Do you mean sorting them such that when you do this:
The values are printed in order, or something else?
int x, y, z;
for (x = 0; x < SIZE; x++)
for (y = 0; y < SIZE; y++)
for (z = 0; z < SIZE; z++)
printf("%d %d %d = %d\n",x,y,z,a[x][y][z]);