|
@@ -75,11 +75,15 @@ class NCDataSource: NSObject {
|
|
|
|
|
|
self.sectionsValue = metadatasSource.map { getSectionValue(metadata: $0) }
|
|
|
self.sectionsValue = Array(Set(self.sectionsValue))
|
|
|
- self.sectionsValue = self.sectionsValue.sorted {
|
|
|
- if self.ascending {
|
|
|
- return $0 < $1
|
|
|
- } else {
|
|
|
- return $0 > $1
|
|
|
+ if let providers = self.providers {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ self.sectionsValue = self.sectionsValue.sorted {
|
|
|
+ if self.ascending {
|
|
|
+ return $0 < $1
|
|
|
+ } else {
|
|
|
+ return $0 > $1
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|