summaryrefslogtreecommitdiff
path: root/src/report.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-19 16:53:25 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-19 16:53:25 -0400
commit9805abbf2b38d64308bac536eea40e544e8f7cfe (patch)
tree32f6b6ae629409a118efdbc99f377fa86640e33d /src/report.cc
parentd67c9fee0f0f576481065c7d50182a04bf5df37e (diff)
downloadfork-ledger-9805abbf2b38d64308bac536eea40e544e8f7cfe.tar.gz
fork-ledger-9805abbf2b38d64308bac536eea40e544e8f7cfe.tar.bz2
fork-ledger-9805abbf2b38d64308bac536eea40e544e8f7cfe.zip
Allow for sorting of the balance report
Sorting is repeated at each level of the hierarchy, unless --flat was specified in which case it applies to the entire applicable accounts list.
Diffstat (limited to 'src/report.cc')
-rw-r--r--src/report.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/report.cc b/src/report.cc
index 565ef77e..d9e88634 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -77,8 +77,8 @@ void report_t::accounts_report(acct_handler_ptr handler)
if (! HANDLED(sort_))
iter.reset(new basic_accounts_iterator(*session.master));
else
- iter.reset(new sorted_accounts_iterator(*session.master,
- HANDLER(sort_).str()));
+ iter.reset(new sorted_accounts_iterator(HANDLER(sort_).str(),
+ HANDLED(flat), *session.master.get()));
if (HANDLED(display_))
pass_down_accounts(handler, *iter.get(),