Simple Sort
2D sort
3D sort
2D sort
3D sort
STATUS: Working. More sorts need to be implemented.
Sort in 2D and 3D so that all elements in the array can be visited only once from the start of the array to the finish.
In 2D the curve snakes from left to right, up to down. In 3D it does the same with slices, just reversing the transversal direction of the previous slice. The complexity is O(nlogn).
More strange orderings may be possible. For example while I divided the array into rectangular grids and ordered on the axes, if you come up with other axes or partitions you could possibly order on them instead.