瀏覽代碼

coding

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 年之前
父節點
當前提交
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)
     }