Browse Source

coding

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 years ago
parent
commit
814b00d38c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      iOSClient/Data/NCManageDatabase+DashboardWidget.swift

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

@@ -41,7 +41,7 @@ extension NCManageDatabase {
     func getDashboardWidgetApplications(account: String) -> Results<tableDashboardWidget> {
 
         let realm = try! Realm()
-        return realm.objects(tableDashboardWidget.self).filter("account == %@", account)
+        return realm.objects(tableDashboardWidget.self).filter("account == %@", account).sorted(byKeyPath: "title", ascending: true)
     }
     
     func addDashboardWidget(account: String, dashboardWidgets: [NCCDashboardWidget]) {