Check sort of the triagle