I have a json objects that have a time key and value, for example:
[
{
"name" : "Meeting 1",
"time" : "9:30am",
"day" : "Sunday",
"location" : "Summit",
},
{
"name" : "Meeting 2",
"time" : "10:00am",
"day" : "Sunday",
"location" : "Juab",
}
]
What I would like the do is sort them by the time property, but you can see the dilemma. If I use Angular's orderBy method it will say 10:00am should come before 9:00 am. I thought about splitting up the objects into am and pm, but still end up with the same problem.
I am brand new to Angular, so I don't know the best way to solve this. Any ideas?