Просмотр исходного кода

coding

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 лет назад
Родитель
Сommit
2139516896
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      iOSClient/Data/NCManageDatabase+DashboardWidget.swift

+ 1 - 1
iOSClient/Data/NCManageDatabase+DashboardWidget.swift

@@ -33,7 +33,7 @@ extension NCManageDatabase {
         guard let resultDashboard = realm.objects(tableDashboardWidget.self).filter("account == %@ AND id == %@", account, id).first else {
             return (nil, nil)
         }
-        let resultsButton = realm.objects(tableDashboardWidgetButton.self).filter("account == %@ AND id == %@", account, id)
+        let resultsButton = realm.objects(tableDashboardWidgetButton.self).filter("account == %@ AND id == %@", account, id).sorted(byKeyPath: "type", ascending: true)
         
         return (resultDashboard, resultsButton)
     }