From d8ffa5fb27ddadc243664548f7cc5b61ce06c063 Mon Sep 17 00:00:00 2001 From: Cam Saul <cam@geotip.com> Date: Wed, 3 Jun 2015 17:20:56 -0700 Subject: [PATCH] test fix? --- src/metabase/driver/query_processor.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/metabase/driver/query_processor.clj b/src/metabase/driver/query_processor.clj index 92f96cc1fa9..7116d61ee2c 100644 --- a/src/metabase/driver/query_processor.clj +++ b/src/metabase/driver/query_processor.clj @@ -318,7 +318,8 @@ (:id %)) (contains? (set field-field-ids) (:id %))))) - (sort-by :position))] + (sort-by (fn [{:keys [position id]}] + [position (when id (- id))])))] (->> (concat breakout-fields field-fields other-fields) (map :castified) (filter identity)))) -- GitLab