From 1329b809e9f358f53225026da79ceb9567bde062 Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Wed, 13 Nov 2024 09:29:20 -0500 Subject: [PATCH] Sort stats by description --- .../com/squareup/invert/common/pages/AllStatsReportPage.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invert-report/src/jsMain/kotlin/com/squareup/invert/common/pages/AllStatsReportPage.kt b/invert-report/src/jsMain/kotlin/com/squareup/invert/common/pages/AllStatsReportPage.kt index 5cc9430..1f57aaa 100644 --- a/invert-report/src/jsMain/kotlin/com/squareup/invert/common/pages/AllStatsReportPage.kt +++ b/invert-report/src/jsMain/kotlin/com/squareup/invert/common/pages/AllStatsReportPage.kt @@ -175,7 +175,7 @@ fun AllStatsComposable( @Composable fun StatTiles(statTotals: Map, onClick: (StatKey) -> Unit) { BootstrapRow { - statTotals.entries.forEach { statTotal -> + statTotals.entries.sortedBy { it.key.description }.forEach { statTotal -> BootstrapColumn(4) { BootstrapJumbotron( centered = true,