a simple program that sorts xyz point files and optionally calculates the difference of the z-coordinate