From a6d04cacb06ecfa3403506c893a743ea163c77eb Mon Sep 17 00:00:00 2001 From: Abe Pazos Date: Wed, 19 Jan 2022 13:36:03 +0100 Subject: [PATCH] Sort demos in readmes --- buildSrc/src/main/kotlin/CollectScreenShots.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/CollectScreenShots.kt b/buildSrc/src/main/kotlin/CollectScreenShots.kt index 0e0afc73b..c2c7ea804 100644 --- a/buildSrc/src/main/kotlin/CollectScreenShots.kt +++ b/buildSrc/src/main/kotlin/CollectScreenShots.kt @@ -73,7 +73,7 @@ abstract class CollectScreenshotsTask @Inject constructor() : DefaultTask() { // this is only executed if there are chances in the inputDir val runDemos = outputDir.get().asFile.listFiles { file: File -> file.extension == "png" - }.map { it.nameWithoutExtension } + }.map { it.nameWithoutExtension }.sorted() val readme = File(project.projectDir, "README.md") if (readme.exists()) { var lines = readme.readLines().toMutableList()