fixes #7646 sort keywords