Commit 6f1feed3 authored by Soomin Lee's avatar Soomin Lee

MediaCollectionModel: Set default sort criteria to default

parent f0d63cb2
......@@ -109,7 +109,7 @@ extension VLCMLAlbum: MediaCollectionModel {
return nil
}
func files(with criteria: VLCMLSortingCriteria = .alpha,
func files(with criteria: VLCMLSortingCriteria,
desc: Bool = false) -> [VLCMLMedia]? {
return tracks(with: criteria, desc: desc)
}
......
......@@ -94,7 +94,7 @@ extension VLCMLArtist: MediaCollectionModel {
return SortModel([.alpha])
}
func files(with criteria: VLCMLSortingCriteria = .alpha,
func files(with criteria: VLCMLSortingCriteria,
desc: Bool = false) -> [VLCMLMedia]? {
return tracks(with: criteria, desc: desc)
}
......
......@@ -107,7 +107,7 @@ extension VLCMLGenre: MediaCollectionModel {
return SortModel([.alpha])
}
func files(with criteria: VLCMLSortingCriteria = .alpha,
func files(with criteria: VLCMLSortingCriteria,
desc: Bool = false) -> [VLCMLMedia]? {
return tracks(with: criteria, desc: desc)
}
......
......@@ -113,7 +113,7 @@ extension VLCMLObject {
}
extension MediaCollectionModel {
func files(with criteria: VLCMLSortingCriteria = .alpha,
func files(with criteria: VLCMLSortingCriteria = .default,
desc: Bool = false) -> [VLCMLMedia]? {
return files(with: criteria, desc: desc)
}
......
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