RangeDatatype now sorts each input pair.