From 092542a3bf056fac545f4b5a1062195569561fd3 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 12 Feb 2009 20:45:33 -0400 Subject: Sorting expr now uses "-" to indicate descending For example: -S payee,-date sorts 1) ascending by payee, then 2) descending by date. --- src/account.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/account.h') 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_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"); } -- cgit v1.2.3