Sort digiModes dropdown in DemodulatorPanel.js (#59)

This commit is contained in:
Richard Murnane 2024-09-11 11:46:06 +10:00 committed by GitHub
parent 4b2cff9472
commit f37a7cf310
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -52,7 +52,10 @@ function DemodulatorPanel(el) {
DemodulatorPanel.prototype.render = function() {
var available = Modes.getModes().filter(function(m){ return m.isAvailable(); });
var normalModes = available.filter(function(m){ return m.type === 'analog'; });
var digiModes = available.filter(function(m){ return m.type === 'digimode'; });
var digiModes = available
.filter(function(m){ return m.type === 'digimode'; })
.sort(function(a, b){ return a.name.localeCompare(b.name) });
var html = []