From 383431ec6d5d4d10139bc37924496bbbae2b957f Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 17 Mar 2020 10:31:04 +0100 Subject: [PATCH] :bug: Fix files ordering on dashboard project page. --- frontend/src/uxbox/main/ui/dashboard/project.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/uxbox/main/ui/dashboard/project.cljs b/frontend/src/uxbox/main/ui/dashboard/project.cljs index b65e9f6e3..4f45c83bb 100644 --- a/frontend/src/uxbox/main/ui/dashboard/project.cljs +++ b/frontend/src/uxbox/main/ui/dashboard/project.cljs @@ -9,7 +9,6 @@ ;; Copyright (c) 2020 Juan de la Cruz (ns uxbox.main.ui.dashboard.project - (:refer-clojure :exclude [sort-by]) (:require [lentes.core :as l] [rumext.alpha :as mf] @@ -24,7 +23,9 @@ (mf/defc project-page [{:keys [section team-id project-id] :as props}] - (let [files (mf/deref files-ref)] + (let [files (->> (mf/deref files-ref) + (sort-by :modified-at) + (reverse))] (mf/use-effect {:fn #(st/emit! (dsh/initialize-project team-id project-id)) :deps (mf/deps team-id project-id)})