Skip to content

Commit

Permalink
Use sorted-map to maintain order
Browse files Browse the repository at this point in the history
  • Loading branch information
rameezk committed Oct 5, 2020
1 parent bc0d2d9 commit 1559588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/financial_health_dashboard/domain.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
(group-by :grouping)
(map (fn [[g t]]
[g (->> t (map :amount) (reduce +))]))
(into {})))
(into (sorted-map))))

(defn liabilities [data]
(->> data (filter (type-of-f? :liability))
Expand Down

0 comments on commit 1559588

Please sign in to comment.