if sortx=TRUE, then x will be modified by sorting it. This avoids an extra duplication of the x.
By leaving sortx=FALSE, an extra duplication of x is performed to avoid changing the input value.
Value
a gvector of type "integer" which will permute the input vector to the proper sort order.
Details
Unlike the base R function, only one input column may be given. The thrust library is used for this operation.