Normalize coordinate order.