How to sort a json array using jquery

How to sort a json array using jquery


  1. {"10:35 AM":{"available_seats":52,"already_booked":2,"max_seat":"54","internal_only":{"10:35 AM":"0"},"stop_selling":{"10:35 AM":"0"}},"04:10 PM":{"available_seats":"54","already_booked":0,"max_seat":"54","internal_only":{"04:10 PM":"0"},"stop_selling":{"04:10 PM":"0"}},"12:05 PM":{"available_seats":45,"already_booked":9,"max_seat":"54","internal_only":{"02:10 PM":"0","12:05 PM":"0"},"stop_selling":{"02:10 PM":"0","12:05 PM":"0"}},"02:10 PM":{"available_seats":"54","already_booked":0,"max_seat":"54","internal_only":{"02:10 PM":"0","12:05 PM":"0"},"stop_selling":{"02:10 PM":"0","12:05 PM":"0"}}}

Can any one think of an easy way to sort the above json using jquery so that is is in ascending time order?

t the moment it comes out as 10:35, 04:10 pm. 12:05, 02:20. I thought you could use sort() but it says it doesn't exist. Thanks


Thanks