fixed category sorting