problem with isSortedBy when seq size == 1