Browse Source

MediaCategoryViewController: Sort name by alpha

Soomin Lee 7 years ago
parent
commit
c78047dc7f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Sources/MediaCategories/MediaCategoryViewController.swift

+ 2 - 1
Sources/MediaCategories/MediaCategoryViewController.swift

@@ -217,7 +217,8 @@ class VLCMediaCategoryViewController: UICollectionViewController, UICollectionVi
 extension VLCMediaCategoryViewController {
     // FIXME: Need to add a button for ascending/descending result
     func sortByFileName() {
-        category.sort(by: .filename)
+        // The issue is that for audio we show title which is quite confusing if we use filename
+        category.sort(by: .alpha)
     }
 
     func sortByDate() {