From 15f888f83014d41709a5b490f9df1e77fbb8b8c6 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Sun, 8 Apr 2018 01:45:15 +0200 Subject: Add documentation on how to sort in reverse order --- doc/ledger.1 | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3