aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorMax Lohrmann <dmoagx@users.noreply.github.com>2015-12-03 11:05:04 +0100
committerMax Lohrmann <dmoagx@users.noreply.github.com>2015-12-03 11:05:04 +0100
commit8ad55ac0c2121c9c2b5061d208a2063299b9b4cb (patch)
tree5156a53d2eedc0c61174f72f925f33f89aa6756d /Source
parent7d4ec977bfdc0fea0af962d3859ba6d39c3c3a2d (diff)
downloadsequelpro-8ad55ac0c2121c9c2b5061d208a2063299b9b4cb.tar.gz
sequelpro-8ad55ac0c2121c9c2b5061d208a2063299b9b4cb.tar.bz2
sequelpro-8ad55ac0c2121c9c2b5061d208a2063299b9b4cb.zip
Fix a silly logic error (#2344)
Diffstat (limited to 'Source')
-rw-r--r--Source/SPGotoDatabaseController.m2
1 files changed, 1 insertions, 1 deletions
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