aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-08-11 21:47:21 +0000
committerrowanbeentje <rowan@beent.je>2009-08-11 21:47:21 +0000
commit3a011f58742e4b3ea830501a5303a2c37f072151 (patch)
treed7b5ac45bdc6af3e79834662c5c71bcc3070be5e
parent9cbae0171595e4afbd6109098b89f1922c623827 (diff)
downloadsequelpro-3a011f58742e4b3ea830501a5303a2c37f072151.tar.gz
sequelpro-3a011f58742e4b3ea830501a5303a2c37f072151.tar.bz2
sequelpro-3a011f58742e4b3ea830501a5303a2c37f072151.zip
- Fix table content sorting, broken in r1183 - this addresses Issue #364
-rw-r--r--Source/TableContent.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m
index a6f647d7..a14375e3 100644
--- a/Source/TableContent.m
+++ b/Source/TableContent.m
@@ -404,7 +404,7 @@
// Add sorting details if appropriate
if (sortCol) {
- [queryString appendFormat:@" ORDER BY @%", [[[dataColumns objectAtIndex:[sortCol intValue]] objectForKey:@"name"] backtickQuotedString]];
+ [queryString appendFormat:@" ORDER BY %@", [[[dataColumns objectAtIndex:[sortCol intValue]] objectForKey:@"name"] backtickQuotedString]];
if (isDesc) [queryString appendString:@" DESC"];
}