I was able to sort json response from sample json using alamofire by
self.responseValue.sorted(by: {(dateFormatter.date(from: $0.object(forKey: "date") as! String))?.compare(dateFormatter.date(from: $1.object(forKey: "date") as! String)!) == .orderedDescending})
I am not sure if this is the right way to do this but this sorts the whole response by date. I am trying to display this to a tableview and name section headers by date(from most recent to the last date available in the response). That I was not able to do yet. To be honest I am not sure how to implement that header date. Are you able to provide some suggestions? Thank you.