sort by created_at. replace new lines to spaces.