Returns whether this pair is lexicographically less than other.
other
bool operator <(Pair<T1, T2> other) => compareTo(other) < 0;