Do not sort Core Data entities by UUID

Crash on compare.
This commit is contained in:
Davide De Rosa 2022-10-11 09:42:23 +02:00
parent f21d05aa53
commit fb4d563804
2 changed files with 1 additions and 2 deletions

View File

@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Oeck provider is available again to free users.
- Randomic crashes on profile updates.
## 2.0.0 (2022-10-02)

View File

@ -38,7 +38,6 @@ class ProfileRepository: Repository {
func fetchedHeaders() -> FetchedValueHolder<[UUID: Profile.Header]> {
let request: NSFetchRequest<NSFetchRequestResult> = CDProfile.fetchRequest()
request.sortDescriptors = [
.init(keyPath: \CDProfile.uuid, ascending: true),
.init(keyPath: \CDProfile.lastUpdate, ascending: true)
]
request.propertiesToFetch = [
@ -68,7 +67,6 @@ class ProfileRepository: Repository {
func profiles() -> [Profile] {
let request = CDProfile.fetchRequest()
request.sortDescriptors = [
.init(keyPath: \CDProfile.uuid, ascending: true),
.init(keyPath: \CDProfile.lastUpdate, ascending: true)
]
do {