From e7d40a9bc2b72acf6db645a4ca829b632cfb9ae4 Mon Sep 17 00:00:00 2001 From: John Kerl Date: Sat, 9 May 2015 11:41:21 -0700 Subject: [PATCH] support numeric and/or descending sorts --- doc/content-for-reference.html | 3 ++- doc/reference.html | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/doc/content-for-reference.html b/doc/content-for-reference.html index 9102a52ec..1e609c0f4 100644 --- a/doc/content-for-reference.html +++ b/doc/content-for-reference.html @@ -413,7 +413,8 @@ POKI_RUN_COMMAND{{mlr --opprint reorder -e -f i,b data/small}}HERE POKI_RUN_COMMAND{{mlr sort --help}}HERE -

xxx write up after -n/-r. +

Example: +POKI_RUN_COMMAND{{mlr --opprint sort -f a -nr x data/small}}HERE

stats1

diff --git a/doc/reference.html b/doc/reference.html index 17d88bc96..7cf6a820e 100644 --- a/doc/reference.html +++ b/doc/reference.html @@ -1119,7 +1119,20 @@ Example:

-

xxx write up after -n/-r. +

Example: +

+

+
+$ mlr --opprint sort -f a -nr x data/small
+a   b   i x                   y
+eks pan 2 0.7586799647899636  0.5221511083334797
+eks wye 4 0.38139939387114097 0.13418874328430463
+pan pan 1 0.3467901443380824  0.7268028627434533
+wye pan 5 0.5732889198020006  0.8636244699032729
+wye wye 3 0.20460330576630303 0.33831852551664776
+
+
+

stats1