aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/QueryKit/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Frameworks/QueryKit/Source')
-rw-r--r--Frameworks/QueryKit/Source/QKQuery.m4
1 files changed, 1 insertions, 3 deletions
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;
}