Can someone help me with sorting the JSON array I received from the server? I need to sort it by appointmentStart.
appointments = [
{
appointmentEnd: "2014-04-09T09:30:00+02:00"
appointmentNote: "Peter - 09/04 - 8 AM"
appointmentStart: "2014-04-09T08:00:00+02:00"
appointmentStatus: "auto-approved"
},
{
appointmentEnd: "2014-04-09T14:00:00+02:00"
appointmentNote: "Peter - 09/04 - 12:30"
appointmentStart: "2014-04-09T12:30:00+02:00"
appointmentStatus: "auto-approved"
},
{
appointmentEnd: "2014-04-09T17:00:00+02:00"
appointmentNote: "Peter - 09/04 - 15:30"
appointmentStart: "2014-04-09T15:30:00+02:00"
appointmentStatus: "auto-approved"
},
{
appointmentEnd: "2014-04-09T15:30:00+02:00"
appointmentNote: ""
appointmentStart: "2014-04-09T14:00:00+02:00"
appointmentStatus: "auto-approved"
},
{
appointmentEnd: "2014-04-09T11:00:00+02:00"
appointmentNote: "09:30"
appointmentStart: "2014-04-09T09:30:00+02:00"
appointmentStatus: "auto-approved"
}
]
Your assistance is greatly appreciated!
Best regards, Chidan