diff --git a/frontend/src/app/main/ui/workspace/sidebar/assets/common.cljs b/frontend/src/app/main/ui/workspace/sidebar/assets/common.cljs index c75c199c9b..f83759b137 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/assets/common.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/assets/common.cljs @@ -39,11 +39,10 @@ (->> coll (filter (fn [item] (or (matches-search (:name item "!$!") term) + (matches-search (:path item "!$!") term) (matches-search (:value item "!$!") term)))) - ; Sort by folder order, but - ; putting all "root" items - ; always first, independently - ; of sort order. + ;; Sort by folder order, but putting all "root" items always + ;; first, independently of sort order. (sort-by #(str/lower (cph/merge-path-item (if (empty? (:path %)) (if reverse? "z" "a") (:path %))