I have updated my Xcode to version 7.3, which is compatible with iOS 9.3. My sort() method, which is let sortArr = saveDeals?.sort({ $1[2] as! String > $0[2] as! String});, is giving me an "ambiguous use of subscript" error. Please let me know what I can do to fix this error. Thank you!
func sortSaveDealsArr(saveDeals: [AnyObject]?) -> [AnyObject]
{
let sortArr = saveDeals?.sort({ $1[2] as! String > $0[2] as! String});
return sortArr!;
}
saveDeals? Everything depends on that.