summaryrefslogtreecommitdiff
path: root/src/clojure_sql/dsl.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/clojure_sql/dsl.clj')
-rw-r--r--src/clojure_sql/dsl.clj4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clojure_sql/dsl.clj b/src/clojure_sql/dsl.clj
index c94f678..35f296f 100644
--- a/src/clojure_sql/dsl.clj
+++ b/src/clojure_sql/dsl.clj
@@ -311,8 +311,8 @@
(assoc query
:sort (for [field fields-seq]
(if (vector? field)
- [(resolve-field table-name fields-lookup (first field)) (second field)]
- [(resolve-field table-name fields-lookup field) :asc])))))
+ [(process-expression table-name fields-lookup (first field)) (second field)]
+ [(process-expression table-name fields-lookup field) :asc])))))
(defn group
"Apply a grouping to a query.