Skip to content
Snippets Groups Projects
Commit 178fa33f authored by Stefan Zabka's avatar Stefan Zabka
Browse files

Merge branch 'sort-apps' into 'master'

Sort app list alphabetically

Closes #19

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