Ref C++ named requirements Compare - cppreference.com.

Compare is a strict order over elements. So it should use < or >. <= or >= do not meet the requirements. Using them in a comparator provided to a std library function will result in undefined behaviour.