We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc57d8f commit 1e03c51Copy full SHA for 1e03c51
1 file changed
scripts/main.js
@@ -378,7 +378,12 @@ document.addEventListener("DOMContentLoaded", () => {
378
defaultOption.selected = true;
379
neuronSelect.appendChild(defaultOption);
380
381
- state.neuronEntries.forEach((entry) => {
+ // Sort entries alphabetically by lowercase
382
+ const sortedEntries = [...state.neuronEntries].sort((a, b) => {
383
+ return a.toLowerCase().localeCompare(b.toLowerCase());
384
+ });
385
+
386
+ sortedEntries.forEach((entry) => {
387
const option = document.createElement("option");
388
// Entries are strings (names from the names array)
389
option.textContent = entry;
0 commit comments