sort and format survey results