소스 검색

coding

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 년 전
부모
커밋
814b00d38c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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]) {