mirror of
https://github.com/status-im/re-frame.git
synced 2025-02-23 15:28:09 +00:00
commit
41f07d2c1b
@ -732,7 +732,7 @@ The subscription-handler might be written:
|
||||
(reaction
|
||||
(let [items (get-in @db [:items]) ;; extract items from db
|
||||
sort-attr (get-in @db [:sort-by])] ;; extract sort key from db
|
||||
(sort-by @sort-attr @items))))) ;; return them sorted
|
||||
(sort-by sort-attr items))))) ;; return them sorted
|
||||
```
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user