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/xact.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/xact.h')
-rw-r--r-- | src/xact.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -132,23 +132,24 @@ public: #define XACT_EXT_MATCHES 0x80 value_t total; - value_t sort_value; value_t value; date_t date; account_t * account; void * ptr; + std::list<sort_value_t> sort_values; + xdata_t() : supports_flags<>(), account(NULL), ptr(NULL) { TRACE_CTOR(xact_t::xdata_t, ""); } xdata_t(const xdata_t& other) : supports_flags<>(other.flags()), total(other.total), - sort_value(other.sort_value), value(other.value), date(other.date), account(other.account), - ptr(NULL) + ptr(NULL), + sort_values(other.sort_values) { TRACE_CTOR(xact_t::xdata_t, "copy"); } |