TextEditor: sort scripting languages by name

In the index, the languages are sorted by priority first, then
lexicographically by class name. That ordering is hardly intuitive for
the user; alphabetic is a stronger visible ordering for them.