Skip to content

Commit

Permalink
Merge pull request ledger#561 from vHanda/next
Browse files Browse the repository at this point in the history
Add documentation on how to sort in reverse order
  • Loading branch information
jwiegley authored Apr 9, 2018
2 parents d7bc4ba + 15f888f commit fd486a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/ledger.1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd486a5

Please sign in to comment.