diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-12 20:45:33 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-12 20:45:33 -0400 |
commit | 092542a3bf056fac545f4b5a1062195569561fd3 (patch) | |
tree | f854942e66033567e47c8f227c357ef59daa7866 /src/account.h | |
parent | e0e181d2af4aff5ac6c253fe25737bf93bfb6996 (diff) | |
download | fork-ledger-092542a3bf056fac545f4b5a1062195569561fd3.tar.gz fork-ledger-092542a3bf056fac545f4b5a1062195569561fd3.tar.bz2 fork-ledger-092542a3bf056fac545f4b5a1062195569561fd3.zip |
Sorting expr now uses "-" to indicate descending
For example: -S payee,-date sorts 1) ascending by payee, then 2)
descending by date.
Diffstat (limited to 'src/account.h')
-rw-r--r-- | src/account.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/account.h b/src/account.h index 24414403..494c25a2 100644 --- a/src/account.h +++ b/src/account.h @@ -126,12 +126,13 @@ class account_t : public scope_t value_t value; value_t total; - value_t sort_value; std::size_t count; // xacts counted toward amount std::size_t total_count; // xacts counted toward total std::size_t virtuals; uint_least8_t dflags; + std::list<sort_value_t> sort_values; + xdata_t() : supports_flags<>(), count(0), total_count(0), virtuals(0), dflags(0) @@ -142,11 +143,11 @@ class account_t : public scope_t : supports_flags<>(other.flags()), value(other.value), total(other.total), - sort_value(other.sort_value), count(other.count), total_count(other.total_count), virtuals(other.virtuals), - dflags(other.dflags) + dflags(other.dflags), + sort_values(other.sort_values) { TRACE_CTOR(account_t::xdata_t, "copy"); } |