Add option to sort the output coordinates (which may or may not break things).