Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/ios.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarino Faggiana <marino@marinofaggiana.com>2022-09-13 23:43:25 +0300
committerMarino Faggiana <marino@marinofaggiana.com>2022-09-13 23:43:25 +0300
commit2139516896aba5877f64fcd7c09b089ab52e7385 (patch)
tree31474c65378f03e62b827807788dd4b68e093aaa
parent99855155be22f2e5a2b2c595d0868faa13137df4 (diff)
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
-rw-r--r--iOSClient/Data/NCManageDatabase+DashboardWidget.swift2
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)
}