Merge pull request #194 from eikek/sort-tag-list

Sort tag list by count
This commit is contained in:
mergify[bot] 2020-07-30 22:23:42 +00:00 committed by GitHub
commit 2f5036231c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,11 @@ viewInsights model =
[ text "Tags"
]
, div [ class "ui statistics" ]
(List.map makeTagStats model.insights.tagCloud.items)
(List.map makeTagStats
(List.sortBy .count model.insights.tagCloud.items
|> List.reverse
)
)
]
]