new style for 2.7
ensure that keys are always sorted the same way
catname is the key