From 47fa8652447e4e4180ee88afd3e8026c1c74c3b9 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Fri, 2 Dec 2022 04:35:06 +0100 Subject: [PATCH] feat: sort README patch table by amount of patches per package --- src/main/kotlin/app/revanced/meta/readme/Generator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/meta/readme/Generator.kt b/src/main/kotlin/app/revanced/meta/readme/Generator.kt index bdce66cbc..bb9ed17ca 100644 --- a/src/main/kotlin/app/revanced/meta/readme/Generator.kt +++ b/src/main/kotlin/app/revanced/meta/readme/Generator.kt @@ -24,7 +24,7 @@ fun generateText(bundle: Bundle) { } } - for (pkg in packages) { + for (pkg in packages.entries.sortedByDescending { it.value.size }) { output.appendLine("### \uD83D\uDCE6 `${pkg.key}`") output.appendLine("
\n")