Beginning Core Data - Part 8: Sorting | Ray Wenderlich

In this video, you'll learn how to sort your objects by the way of sort descriptors.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/3444-beginning-core-data/lessons/8

Perhaps in order to sort case insensitive names, it could be use the following NSSortDescriptor:
let sort = NSSortDescriptor(key: "name", ascending: true, selector: #selector(NSString.localizedCaseInsensitiveCompare))
instead of:
let sort = NSSortDescriptor(keyPath: \Friend.name, ascending: true)

Sorry, that issue has been solved in the next lesson.