sorting API now by date