add text styling to result pie elements so they are used in PDF output
function for sorting by question