Ordino is much better from west than east. Almost 10 km at 7 % from that direction.
But Beixalis as the last climb would have been better. After Envalira they could have done Ordino east, then continued south to do Galina, then Comella on the way north again before Beixalis and descending to...