Consistent sorting of output

This commit is contained in:
Christoph Hagen
2025-01-27 07:56:36 +01:00
parent 09b1f48aea
commit 82c40cc080
6 changed files with 23 additions and 6 deletions

View File

@@ -61,7 +61,7 @@ struct PageHeader: HtmlProducer {
return ""
}
var result = "<div style='display:none'>"
for icon in icons {
for icon in icons.sorted(using: { $0.id} ) {
result += icon.icon.svgString
}
result += "</div>"