Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift core data sort by date

var sdSortDate = NSSortDescriptor.init(key: "date", ascending: false)
fr.sortDescriptors = [sdSortDate]
let result4 = try! context.fetch(fr)
 
PREVIOUS NEXT
Tagged: #swift #core #data #sort #date
ADD COMMENT
Topic
Name
7+7 =