Updated client to output hist in date order

This is wanted for our charting library to do less fiddling with the returned data in Javascript.