sort package:statistics

Sort a vector.
Sort a vector using a custom ordering.
Sort a vector.
Partially sort a vector, such that the least k elements will be at the front.