summaryrefslogtreecommitdiff
path: root/src/lookup.cc
diff options
context:
space:
mode:
authorthdox <thdox@free.fr>2015-02-22 16:07:54 +0100
committerthdox <thdox@free.fr>2015-02-22 16:07:54 +0100
commit80e432a7b269f247e87884f42e49f4d72ca35fe1 (patch)
treebf38e388326d85a7ac3a60877f368f75982d9ba7 /src/lookup.cc
parent00c10a383ceb178c9317de52f2aca7a21099d415 (diff)
downloadfork-ledger-80e432a7b269f247e87884f42e49f4d72ca35fe1.tar.gz
fork-ledger-80e432a7b269f247e87884f42e49f4d72ca35fe1.tar.bz2
fork-ledger-80e432a7b269f247e87884f42e49f4d72ca35fe1.zip
Fix sorting for option --auto-match.
See http://en.cppreference.com/w/cpp/algorithm/max_element and http://www.cplusplus.com/reference/algorithm/max_element/ The sorting for max requires < (and not >).
Diffstat (limited to 'src/lookup.cc')
-rw-r--r--src/lookup.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lookup.cc b/src/lookup.cc
index 6dbeb502..3b6707e5 100644
--- a/src/lookup.cc
+++ b/src/lookup.cc
@@ -54,7 +54,7 @@ namespace {
struct usage_sorter {
bool operator()(const account_use_pair& left,
const account_use_pair& right) const {
- return left.second > right.second;
+ return left.second < right.second;
}
};
}