Browse Source

coding

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 years ago
parent
commit
2139516896
1 changed files with 1 additions and 1 deletions
  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)
     }