From 8ad55ac0c2121c9c2b5061d208a2063299b9b4cb Mon Sep 17 00:00:00 2001 From: Max Lohrmann Date: Thu, 3 Dec 2015 11:05:04 +0100 Subject: Fix a silly logic error (#2344) --- Source/SPGotoDatabaseController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source') diff --git a/Source/SPGotoDatabaseController.m b/Source/SPGotoDatabaseController.m index b4c11a8c..54e4a22f 100644 --- a/Source/SPGotoDatabaseController.m +++ b/Source/SPGotoDatabaseController.m @@ -303,7 +303,7 @@ static BOOL StringQualifiesForWordSearch(NSString *s); NSUInteger mgc2 = [[(SPGotoFilteredItem *)obj2 matches] count]; if(mgc1 < mgc2) return NSOrderedAscending; - if(mgc2 > mgc1) + if(mgc2 < mgc1) return NSOrderedDescending; } // For strings with the same number of match groups we just sort alphabetically -- cgit v1.2.3