When conducting an NS Fetch Request, you most likely do not want every record in your database, but a subset of the date. NSPredicate allows you to select a subset of your data, which is returned as an Array by NSFetchRequest, and thus can be ordered, with an NSSortDescriptor.
Multiple NSSortDestriptors can be supplied to sort date in multiple columnts, such as age, followed by gender, followed by name.
Watch video Swift 4: Using Core Data - NSSortDescriptor and NSPredicate online without registration, duration hours minute second in high quality. This video was added by user Swift Almanac 10 November 2017, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,304 once and liked it 14 people.