From 0f2a31bea765c4ce6248f3219c8c5347507beb90 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Mon, 15 Oct 2018 12:07:44 -0700 Subject: [PATCH] docs: journal: account: a little bit more about sorting [ci skip] --- hledger-lib/hledger_journal.m4.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hledger-lib/hledger_journal.m4.md b/hledger-lib/hledger_journal.m4.md index d1ca1bae1..d2a337aa0 100644 --- a/hledger-lib/hledger_journal.m4.md +++ b/hledger-lib/hledger_journal.m4.md @@ -911,11 +911,14 @@ expenses Undeclared accounts, if any, are displayed last, in alphabetical order. Note that sorting is done at each level of the account tree (within each group of sibling accounts under the same parent). -This directive: +And currently, this directive: ```journal account other:zoo ``` would influence the position of `zoo` among `other`'s subaccounts, but not the position of `other` among the top-level accounts. +This means: +- you will sometimes declare parent accounts (eg `account other` above) that you don't intend to post to, just to customize their display order +- sibling accounts stay together (you couldn't display `x:y` in between `a:b` and `a:c`). ### Rewriting accounts