Skip to content
Snippets Groups Projects
Commit 5f541828 authored by Cam Saül's avatar Cam Saül Committed by GitHub
Browse files

Merge pull request #3902 from metabase/dashboard-sorting

Sort dashboards coming back from GET /api/dashboard
parents 2d9cf094 a61073d0
No related branches found
No related tags found
No related merge requests found
......@@ -17,9 +17,10 @@
(defn- dashboards-list [filter-option]
(filter models/can-read? (-> (db/select Dashboard {:where (case (or (keyword filter-option) :all)
:all true
:mine [:= :creator_id *current-user-id*])})
(filter models/can-read? (-> (db/select Dashboard {:where (case (or (keyword filter-option) :all)
:all true
:mine [:= :creator_id *current-user-id*])
:order-by [:%lower.name]})
(hydrate :creator))))
(defendpoint GET "/"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment