json data sorted by date