Commit 178fa33f authored by Stefan Zabka's avatar Stefan Zabka

Merge branch 'sort-apps' into 'master'

Sort app list alphabetically

Closes #19

See merge request card10/companion-app-android!26
parents ed9053bc 8e98f1d5
...@@ -43,6 +43,6 @@ class AppListAdapter(val clickListener: (App) -> Unit) : RecyclerView.Adapter<Ap ...@@ -43,6 +43,6 @@ class AppListAdapter(val clickListener: (App) -> Unit) : RecyclerView.Adapter<Ap
} }
fun update(items: List<App>) { fun update(items: List<App>) {
data = items data = items.sortedWith(compareBy { it.name.toLowerCase() })
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment