From 80e432a7b269f247e87884f42e49f4d72ca35fe1 Mon Sep 17 00:00:00 2001 From: thdox Date: Sun, 22 Feb 2015 16:07:54 +0100 Subject: 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 >). --- src/lookup.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lookup.cc') 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; } }; } -- cgit v1.2.3