Sort publications by vivoType

Need to clean up the code and convert vivoTypes into headings