fixed lang_sel view picking the wrong file.

Ensure that the list of files in lang_sel is sorted the same way the list in list_languages before picking a file by an index.