sort categories in printouts