Updated client to output hist in date order