Sort stars according to distance before returning from import