#5101: Added glossify term sort so longest term names get glossified first.