Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Array(3)
- 0: Appointment
- area: "S. Eter"
- data: "2019-05-23T12:40:55.155+01:00"
- description: "Sprint CS WEB"
- horaFinal: "2019-05-21T11:40:59.028Z"
- horaInicial: "2019-05-21T11:40:59.028Z"
- id: 17
- __proto__: Object
- 1: Appointment
- area: "S. Confiança"
- data: "2019-05-23T12:40:55.155+01:00"
- description: "AR"
- horaFinal: "2019-05-21T16:45:15.448+01:00"
- horaInicial: "2019-05-21T16:00:15.448+01:00"
- id: 18
- __proto__: Object
- 2: Appointment
- area: "djdndjsnsnsnzznj"
- data: "2019-05-23T11:18:24.596+01:00"
- description: "xbxnxnsnsjsjdjdkssjdjsjsk"
- horaFinal: "2019-05-22T10:42:46.770Z"
- horaInicial: "2019-05-22T11:41:46.769+01:00"
- id: 23
- __proto__: Object
- this.appointments.sort(function(a, b) {
- var textA = a.horaInicial.toUpperCase();
- var textB = b.horaInicial.toUpperCase();
- return (textA < textB) ? -1 : (textA > textB) ? 1 : 0;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement