Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Commit

Permalink
Assigne scopes are always sorted alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
ggirelli committed Jun 14, 2019
1 parent aa3fbea commit 01ee080
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/js/settings-microscope.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ load_microscope_components = function() {
var scopeList = source.microscopes;
if ( -1 == scopeList.indexOf(selectedScope) ) {
scopeList.push(selectedScope);
eset.set(sourcePath + ".microscopes", scopeList);
eset.set(sourcePath + ".microscopes", scopeList.sort());
}

sourceAddedWrap
Expand All @@ -84,7 +84,7 @@ load_microscope_components = function() {
var scopeList = source.microscopes;
if ( -1 != scopeList.indexOf(selectedScope) ) {
eset.set(sourcePath + ".microscopes",
$.grep(scopeList, (value) => { return value != selectedScope }));
$.grep(scopeList, (value) => { return value != selectedScope }).sort());
}

sourceAvailWrap
Expand Down

0 comments on commit 01ee080

Please sign in to comment.