                {:series
                 [{:key "B",
                   :label "B",
-                  :data [{:value 4M} {:value 2M} {:value 1M}],
+                  :data (vec (reverse [{:value 4M} {:value 2M} {:value 1M}])),
                   :metadata {:type "number"}}],
                 :common
                 {:metadata {:sampled false},
-                 :data [{:label "c" :key "c"} {:label "b" :key "b"} {:label "a" :key "a"}]}}))))))
+                 :data (vec (reverse [{:label "c" :key "c"} {:label "b" :key "b"} {:label "a" :key "a"}]))}}))))))

               {:series
                [{:key nil,
                  :label nil,
                  :data [{:value 2} {:value 1} {:value 1}],
                  :metadata {:type nil}}],
                :common
                {:metadata {:sampled false},
                 :data [{:label "c" :key "c"} {:label "b" :key "b"} {:label "a" :key "a"}]}}))))
    (testing "Metric queries"
      (let [[tag query-result] (query {:bucketColumn "c1"
                                       :metricColumn "c2"


      (let [[tag query-result] (query {:bucketColumn "c2"})]
        (is (= query-result
               {:series [{:key "B", :label "B", :data (vec (reverse [{:value 5} {:value 3}]))}],
                :common
                {:data (vec (reverse [{:key "b1", :label "b1"} {:key "b2", :label "b2"}])),
                 :metadata {:type "text"}}}))))))

(deftest ^:functional bar-tests
