feat(gui): sort file picker extensions alphabetically (#991)

We sort the supported file extensions listed in the file picker
in alphabetical order.

See: https://github.com/resin-io/etcher/issues/984
Changelog-Entry: Sort supported extensions alphabetically in the image file-picker.
Change-Type: patch
This commit is contained in:
Benedict Aas 2016-12-30 04:44:13 +00:00 committed by Juan Cruz Viotti
parent de6ad80038
commit ec3c74d7e5

View File

@ -57,7 +57,7 @@ module.exports = function($q, SupportedFormatsModel) {
filters: [
{
name: 'OS Images',
extensions: SupportedFormatsModel.getAllExtensions()
extensions: _.sortBy(SupportedFormatsModel.getAllExtensions())
}
]
}, (files) => {