Diophantine example: Sort the outputs for test case "robustness"