Ordering triangle sides and angles