Commit 5b9e9e60 authored by Geoffrey Métais's avatar Geoffrey Métais

TV: Fix alpha sorting

parent 7c53b343
...@@ -97,7 +97,9 @@ object ModelsHelper { ...@@ -97,7 +97,9 @@ object ModelsHelper {
} }
} }
} }
array if (sort == Medialibrary.SORT_DEFAULT || sort == Medialibrary.SORT_FILENAME || sort == Medialibrary.SORT_ALPHA)
array.toSortedMap()
else array
} }
fun getHeader(context: Context, sort: Int, item: MediaLibraryItem, aboveItem: MediaLibraryItem?) = when (sort) { fun getHeader(context: Context, sort: Int, item: MediaLibraryItem, aboveItem: MediaLibraryItem?) = when (sort) {
......
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