mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-04-04 10:29:34 +00:00
Sort tag list by count
It was displayed in some random order. Now the most used tag is first.
This commit is contained in:
parent
dbd0f3ff97
commit
091ded50cb
@ -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
|
||||
)
|
||||
)
|
||||
]
|
||||
]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user