Order OSD elements in alphabetical order (#1485)
Order OSD elements in alphabetical order10.7.0-preview
commit
bb72a44f84
|
@ -2275,8 +2275,20 @@ TABS.osd.initialize = function (callback) {
|
|||
}))
|
||||
);
|
||||
}
|
||||
|
||||
// Insert in alphabetical order
|
||||
let added = false;
|
||||
$displayFields.children().each(function() {
|
||||
if ($(this).text() > $field.text()) {
|
||||
$(this).before($field);
|
||||
added = true;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
if(!added) {
|
||||
$displayFields.append($field);
|
||||
}
|
||||
}
|
||||
|
||||
GUI.switchery();
|
||||
// buffer the preview
|
||||
|
|
Loading…
Reference in New Issue