logical vector of the same length as x. For the
reversion to work this should select at least all unique values of
x.
need.sort
logical indicating if x is not yet sorted.
Note that this argument exists only for speedup possibility when it
is known, and that it must be set correctly.