From 6870c54644ba41fe360d43d27885ded46beac7c5 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 4 Feb 2010 19:47:49 -0500 Subject: Refactored some comparison helper classes --- src/balance.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/balance.cc') diff --git a/src/balance.cc b/src/balance.cc index 4ff51ffc..4fcc83fa 100644 --- a/src/balance.cc +++ b/src/balance.cc @@ -271,7 +271,8 @@ void balance_t::print(std::ostream& out, if (pair.second) sorted.push_back(&pair.second); - std::stable_sort(sorted.begin(), sorted.end(), compare_amount_commodities()); + std::stable_sort(sorted.begin(), sorted.end(), + commodity_t::compare_by_commodity()); foreach (const amount_t * amount, sorted) { int width; -- cgit v1.2.3