From 52a6826c9249e18d0bbcad342ad9f3542de0be10 Mon Sep 17 00:00:00 2001 From: Meenbeese Date: Fri, 12 Apr 2024 22:14:49 -0400 Subject: [PATCH] Sort repos in alphabetical order --- app/src/main/kotlin/com/looker/droidify/database/Database.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/looker/droidify/database/Database.kt b/app/src/main/kotlin/com/looker/droidify/database/Database.kt index 1de3b95ed..34a372d8d 100644 --- a/app/src/main/kotlin/com/looker/droidify/database/Database.kt +++ b/app/src/main/kotlin/com/looker/droidify/database/Database.kt @@ -47,7 +47,7 @@ object Database { val helper = Helper(context) db = helper.writableDatabase if (helper.created) { - for (repository in Repository.defaultRepositories) { + for (repository in Repository.defaultRepositories.sortedBy { it.name }) { RepositoryAdapter.put(repository) } }