Order objects using a nearest neighbor search instead of relying on the order in plater. #1184