summaryrefslogtreecommitdiff
path: root/src/xact.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-12 20:45:33 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-12 20:45:33 -0400
commit092542a3bf056fac545f4b5a1062195569561fd3 (patch)
treef854942e66033567e47c8f227c357ef59daa7866 /src/xact.h
parente0e181d2af4aff5ac6c253fe25737bf93bfb6996 (diff)
downloadfork-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.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/xact.h b/src/xact.h
index ed9c630b..cb89b512 100644
--- a/src/xact.h
+++ b/src/xact.h
@@ -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");
}