An array contains the list of values as below:
Object {status: "Pen"
apptDate:"12-06-2001 04:00 PM "
func:"OOS"}
Object {status: "Pen"
apptDate:"14-03-2001 04:00 PM "
func:"OOS"}
Object {status: "Pen"
apptDate:"15-09-2001 04:00 PM "
func:"OOS"}
Object {status: "Pen"
apptDate:"11-01-2001 04:00 PM "
}
Object {status: "Pen"
apptDate:"10-02-2001 04:00 PM "
}
Need to create a new array based on the current array that will have the object.func value as "OOS" should be pushed first inside the array while keeping the apptDate in asc order, incase no value present in object.func then sort the sort the array based on apptDate in asc order
15-18-2001is not a valid date.