Sort languages via their display names

This fixes #7516.