Tagging: added type sorting so tabs are ordered alphabetically.