reverse sort the output JSON by date