Sort completed grubs to end
This commit is contained in:
parent
f19a0b022b
commit
c168227df7
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@
|
|||
|
||||
(defn render-grub-list [grubs]
|
||||
(let [grub-list (sel1 :#grubList)
|
||||
sorted-grubs (sort-by :_id grubs)]
|
||||
sorted-grubs (sort-by (juxt :completed :_id) grubs)]
|
||||
(aset grub-list "innerHTML" "")
|
||||
(doseq [grub sorted-grubs]
|
||||
(dommy/append! grub-list (grub-template grub)))))
|
||||
|
|
Loading…
Reference in a new issue