From 2978d235cc9c5beb885d68832ead9b7b364a1740 Mon Sep 17 00:00:00 2001 From: Abe Pazos Date: Wed, 19 Jan 2022 15:21:07 +0100 Subject: [PATCH] Sort demos in readmes (#220) --- 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 0e0afc73..c2c7ea80 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()