Expected behavior
The list of languages should be sorted.
Actual behavior
The list of languages is in no particular order.
Steps to reproduce
- Open up account settings
- Click or scroll to "Site Preferences".
- Click "Edit" next to "Site language".
- Note the list of languages.
Conditions of Acceptance
The drop-down list of languages should be sorted, probably by ISO 639 code, but possibly by visual language name if that is our project-wide convention.
Right now this language list ordering appears to be just generated by parsing https://github.com/openedx/frontend-app-account/blob/master/src/account-settings/site-language/constants.js. Whether the solution is to sort that data structure (easy, harder to sustain) or to sort the input when generating the drop-down list is dealers choice, really. Make it efficient and sustainable.
Expected behavior
The list of languages should be sorted.
Actual behavior
The list of languages is in no particular order.
Steps to reproduce
Conditions of Acceptance
The drop-down list of languages should be sorted, probably by ISO 639 code, but possibly by visual language name if that is our project-wide convention.
Right now this language list ordering appears to be just generated by parsing https://github.com/openedx/frontend-app-account/blob/master/src/account-settings/site-language/constants.js. Whether the solution is to sort that data structure (easy, harder to sustain) or to sort the input when generating the drop-down list is dealers choice, really. Make it efficient and sustainable.