Issue 18: Sort routes according to distance