order categories by weight too (bug 889941)