summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2018-04-09 10:09:04 -0700
committerGitHub <noreply@github.com>2018-04-09 10:09:04 -0700
commitfd486a59755382731113d1597a59680a8f6b84fe (patch)
tree62e4e222c1451ed93ae550a6b090c58a20a89305
parentd7bc4bab36eeef96c75de86a2f3b491e145ddccc (diff)
parent15f888f83014d41709a5b490f9df1e77fbb8b8c6 (diff)
downloadfork-ledger-fd486a59755382731113d1597a59680a8f6b84fe.tar.gz
fork-ledger-fd486a59755382731113d1597a59680a8f6b84fe.tar.bz2
fork-ledger-fd486a59755382731113d1597a59680a8f6b84fe.zip
Merge pull request #561 from vHanda/next
Add documentation on how to sort in reverse order
-rw-r--r--doc/ledger.13
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/ledger.1 b/doc/ledger.1
index 85a9937b..fc4dd3c0 100644
--- a/doc/ledger.1
+++ b/doc/ledger.1
@@ -214,6 +214,9 @@ Note that a comma-separated list of expressions is allowed, in which case each
sorting term is used in order to determine the final ordering. For example,
to search by date and then amount, one would use:
.Dl ledger reg --sort 'date, amount'
+The sort order may be controlled with the '-' sign. For example, to sort in
+reverse chronological order:
+.Dl ledger reg --sort '-date'
.It Fl \-tail Ar number
Only show the last
.Ar number