Post

Replies

Boosts

Views

Activity

Comment on Using NSSortDescriptor(key: "date", ascending: true
Hi DMG, I have been without any luck to get this to sort correctly, so I changed the ascending to false and that works, but of course I can't find how to change the attribute 'date' from a string. I changed it in Attributes to a Date but of course many errors pop up ( Cannot assign value of type 'Date?' to type 'String?') I read somewhere but cannot find it on how to convert a 'date' String to use for sorting? Any thoughts on where to find an article I can read. Thanks for any help. Drew
Mar ’22