I've got the following data for a single stock across a range of dates which for the moment is an Ember fixture:
App.Stock.FIXTURES = [
{
id:1,
value:85.7,
date: '2014-01-01T00:00:00'
},
{
id:2,
value:82.7,
date: '2014-01-02T00:00:00'
},
{
id:3,
value:89.5,
date: '2014-01-03T00:00:00'
}
]
What's the most sensible way to get things such as the current price (defined by the highest date) or the highest value this year?