...
Sort data in coordinate direction x / y / z / s in acending (or dsc descending) order.
Sort data in nearest point direction
...
cal sort nea
Sort data in direction of the nearest point. Use first cal sort x | y | z | s [dsc] to get an initial correct starting point.
...