Is it possible to add sortDescriptor in MagicalRecord request to get case insensitive sorting
Asked
Active
Viewed 41 times
0
-
Does this answer your question? [Case Insensitive Compare with Core Data and Swift](https://stackoverflow.com/questions/35165986/case-insensitive-compare-with-core-data-and-swift) – Larme May 14 '22 at 12:05
-
Nope, I use MagicalRecord to work with coreData and I can't add sortDescriptors – Empiric May 14 '22 at 12:14
-
From what I recall (I used it 10 years ago), you could add sort descriptors. See https://stackoverflow.com/questions/14216022/coredata-use-of-magicalrecord-with-fetchedresultscontroller-and-a-custom-sortde What's your request call? – Larme May 14 '22 at 12:16
-
@Larme Yes! Create my own fetchRequest helped. Thanks! – Empiric May 14 '22 at 12:33
-
Note that the library hasn't been updated for a long time and on the project page it says _"This project's activity has stopped, superseded by Core Data itself"_ so maybe the best solution here is to not use the library and work with Core Data directly. – Joakim Danielson May 14 '22 at 12:35
-
@JoakimDanielson Thanks, I take it into account. May be there are some other libraries that you can recommend – Empiric May 14 '22 at 12:48
-
Why do you need a 3rd party library at all? – Joakim Danielson May 14 '22 at 12:49
-
@JoakimDanielson, just to make easier work with CoreData – Empiric May 14 '22 at 13:07