Sort recipes by name
This commit is contained in:
parent
c910d1d1f8
commit
414dceec8b
1 changed files with 3 additions and 1 deletions
|
@ -23,7 +23,9 @@
|
|||
[:h3.recipes-title "Recipes"]
|
||||
(om/build recipe-new/view {} {:opts {:add-recipe-ch add-recipe-ch}})
|
||||
[:ul#recipe-list.list-group.recipe-list
|
||||
(for [recipe (vals recipes)]
|
||||
(for [recipe (->> recipes
|
||||
vals
|
||||
(sort-by #(.toLowerCase (:name %))))]
|
||||
(om/build recipe/view
|
||||
recipe
|
||||
{:key :id :opts {:remove-recipe-ch remove-recipe-ch}}))]]))
|
||||
|
|
Loading…
Reference in a new issue