rank | Sample RanksReturns the sample ranks of the values in a vector. Ties (i.e., equal values) and missing values can be handled in several ways. |
order | Ordering Permutationorder returns a permutation which rearranges its first argument into ascending or descending order, breaking ties by further arguments. sort.list is the same, using only one argument. |