currently, if we click on the Language button in the upper right corner, we get Afrikaans, ..., English, ..., Zazaki, asturianu, ..., français, ..., then we have the Greek script, the Cyrrilic script, Arabic script and so on.
This is qite disturbing for users who come from Wikimedia projects since the languages do not follow this order.
For Latin script, I think it should follow a case insensitive order, which gives Afrikaans, asturianu, ... English, ..., français, ... Zazaki.
For the non-Latin script, I do not know what would be the best solution. Probably following what is done on the Wikimedia projects is also the good way to do in order not to disturb users.
The first part of this is to sort them in the right order in the bundle: https://github.com/wikimedia/ToolforgeBundle/pull/19 (I suspect we actually meant to do it this way originally).
The language list is now in the right order on the staging site.
(Had to manually clear the cache files, as seems to be the case whenever we introduce or remove PHP classes; not sure why.)