diff options
author | Marino Faggiana <marino@marinofaggiana.com> | 2022-09-13 23:43:25 +0300 |
---|---|---|
committer | Marino Faggiana <marino@marinofaggiana.com> | 2022-09-13 23:43:25 +0300 |
commit | 2139516896aba5877f64fcd7c09b089ab52e7385 (patch) | |
tree | 31474c65378f03e62b827807788dd4b68e093aaa | |
parent | 99855155be22f2e5a2b2c595d0868faa13137df4 (diff) |
codingfeature/widget
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
-rw-r--r-- | iOSClient/Data/NCManageDatabase+DashboardWidget.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iOSClient/Data/NCManageDatabase+DashboardWidget.swift b/iOSClient/Data/NCManageDatabase+DashboardWidget.swift index 913d00472..6a1c5be2b 100644 --- a/iOSClient/Data/NCManageDatabase+DashboardWidget.swift +++ b/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) } |