mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-05 22:55:58 +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"
|
[ text "Tags"
|
||||||
]
|
]
|
||||||
, div [ class "ui statistics" ]
|
, 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