I have this array:
let arrayFechas = [2016-11-21 23:00:00 +0000, 2016-11-28 23:00:00 +0000, 2016-11-22 23:00:00 +0000, 2016-11-23 23:00:00 +0000, 2016-11-18 23:00:00 +0000, 2016-11-25 23:00:00 +0000, 2016-11-19 23:00:00 +0000, 2016-11-26 23:00:00 +0000, 2016-11-20 23:00:00 +0000, 2016-11-27 23:00:00 +0000]
And what I want, is to be able to sort it by ascending date. I have this code, but I get an error:
arrayfechas.sort({ $0.date.compare($1.date) == ComparisonResult.orderAscending })
This is the error that gives me:
Argument passed to call that takes no arguments
I use swift 3