Explorar el Código

MediaCategoryViewController: Sort name by alpha

Soomin Lee hace 7 años
padre
commit
c78047dc7f
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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() {