added optional ordering of taxa and categories