deter invalid category orderings