The method below returns a sorted version of the data set given as first argument.

1 2 |

`x` |
a data frame or data set. |

`decreasing` |
a logical value, should sorting be in increasing or decreasing order? |

`by` |
a character name of variable names, by which to sort; a formula giving the variables, by which to sort; NULL, in which case, the data frame / data set is sorted by all of its variables. |

`na.last` |
for controlling the treatment of 'NA's. If 'TRUE', missing values in the data are put last; if 'FALSE', they are put first; if 'NA', they are removed |

`...` |
other arguments, currently ignored. |

A sorted copy of `x`

.

1 2 3 4 5 6 7 8 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.