Description Usage Arguments Details Value See Also Examples
Sort a vector or a list, given one or more auxiliary functions.
1 |
x |
vector or list to sort. |
... |
one or several functions to apply to |
method |
the method for ties (see |
The output of the first function will be used as first key for sorting, the output of the second function as second key, and so on... Therefore, these outputs should be sortable (i.e. atomic vectors).
sort_by
is inspired by sortBy
in Haskell.
A vector or list containing rearranged elements of x
.
order
which is used for rearranging elements.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.