Fixes minor issue with sorting

This commit is contained in:
2024-09-25 23:08:22 -07:00
parent cf7e7619dc
commit 85c0e21daf
3 changed files with 3 additions and 3 deletions

View File

@@ -630,7 +630,7 @@
(conj {:sort-key "default" :asc (if (contains? args :default-asc?)
(:default-asc? args)
true)})
(conj {:sort-key "e" :asc false}))
(conj {:sort-key "e" :asc true}))
length (count sort-bys)
comparator (fn [xs ys]
(reduce

View File

@@ -117,7 +117,7 @@
true
(merge-query {:query {:find ['?sort-default '?e]}})))]
(->> (observable-query query)
(apply-sort-4 (update args :sort conj {:sort-key "default-2" :asc true}))
(apply-sort-4 (assoc args :default-asc? true))
(apply-pagination args))))
(defn graphql-results [ids db _]