I have this:
class Movies { Name:String Date:Int }
and an array of [Movies]. How do I sort the array alphabetically by name? I\'ve trie
For those using Swift 3, the equivalent method for the accepted answer is:
movieArr.sorted { $0.Name < $1.Name }