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/value.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/value.h') diff --git a/src/value.h b/src/value.h index 049d3d01..c84f507c 100644 --- a/src/value.h +++ b/src/value.h @@ -931,6 +931,17 @@ inline value_t& add_or_set_value(value_t& lhs, const T& rhs) { return lhs; } +struct sort_value_t +{ + bool inverted; + value_t value; + + sort_value_t() : inverted(false) {} +}; + +bool value_is_less_than(const std::list& left_values, + const std::list& right_values); + } // namespace ledger #endif // _VALUE_H -- cgit v1.2.3