Extensions list in issue reporter should be sorted in a case insensitive way, fixes #48614

This commit is contained in:
Rachel Macfarlane
2018-04-24 16:08:25 -07:00
parent b67472bae0
commit 2989374882

View File

@@ -800,11 +800,13 @@ export class IssueReporter extends Disposable {
// Sort extensions by name
extensionOptions.sort((a, b) => {
if (a.name > b.name) {
const aName = a.name.toLowerCase();
const bName = b.name.toLowerCase();
if (aName > bName) {
return 1;
}
if (a.name < b.name) {
if (aName < bName) {
return -1;
}