I have created a core data model like below
I have use this as code to pull from Core Data and arrange it with Alphabetical order.
let PlaylistTable = (PlaylistTables![0] as AnyObject).value(forKey: "songs") as! NSSet
let songsUnsorted = PlaylistTable.allObjects as NSArray
return songsUnsorted.sortedArray(using: [songSortDescriptor]) as NSArray
How can i do to allows songs to be rearrange in the order i like ? Example
a
b
c
To whatever arrangement i like and next time when i pull from Core Data it will be the same order ?
b
c
a