From 9e3d5b84e2c6a2159a534bbe9644be70b70937c9 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sat, 25 Feb 2012 20:03:44 +0000 Subject: Add some more QueryKit tests. --- Frameworks/QueryKit/Source/QKQuery.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Frameworks/QueryKit/Source') diff --git a/Frameworks/QueryKit/Source/QKQuery.m b/Frameworks/QueryKit/Source/QKQuery.m index ded198ba..21053203 100644 --- a/Frameworks/QueryKit/Source/QKQuery.m +++ b/Frameworks/QueryKit/Source/QKQuery.m @@ -378,9 +378,7 @@ static NSString *QKNoQueryTableException = @"QKNoQueryTable"; [orderBy setString:[orderBy substringToIndex:([orderBy length] - 2)]]; } - if (_orderDescending) { - [orderBy appendString:@" DESC"]; - } + [orderBy appendString:_orderDescending ? @" DESC" : @" ASC"]; return orderBy; } -- cgit v1.2.3