diff options
author | thdox <thdox@free.fr> | 2015-02-22 16:07:54 +0100 |
---|---|---|
committer | thdox <thdox@free.fr> | 2015-02-22 16:07:54 +0100 |
commit | 80e432a7b269f247e87884f42e49f4d72ca35fe1 (patch) | |
tree | bf38e388326d85a7ac3a60877f368f75982d9ba7 /src/lookup.cc | |
parent | 00c10a383ceb178c9317de52f2aca7a21099d415 (diff) | |
download | fork-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.cc | 2 |
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; } }; } |