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()