Ensuring the totally ordered ranges.