From f20f12dba97c290cf6e6fb3474736214a3f79703 Mon Sep 17 00:00:00 2001 From: pacien Date: Tue, 7 Aug 2018 00:22:20 +0200 Subject: Sort networks alphabetically --- app/src/main/kotlin/org/pacien/tincapp/activities/StartActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/src/main/kotlin/org/pacien/tincapp/activities/StartActivity.kt b/app/src/main/kotlin/org/pacien/tincapp/activities/StartActivity.kt index 1e267d6..50e002f 100644 --- a/app/src/main/kotlin/org/pacien/tincapp/activities/StartActivity.kt +++ b/app/src/main/kotlin/org/pacien/tincapp/activities/StartActivity.kt @@ -68,7 +68,7 @@ class StartActivity : BaseActivity() { } override fun onRefresh() { - val networks = AppPaths.confDir().list()?.toList() ?: emptyList() + val networks = AppPaths.confDir().list()?.sorted() ?: emptyList() runOnUiThread { networkListAdapter?.setElements(networks) setPlaceholderVisibility() -- cgit v1.2.3