Skip to content

Commit 178db02

Browse files
committed
added file sorting for board in store.js
1 parent e219fa1 commit 178db02

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/arduino/store.js

+3
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ function store(state, emitter) {
218218
state.serialFiles = state.serialFiles.filter(
219219
f => f.indexOf('.') !== 0 // No dot files
220220
)
221+
state.serialFiles.sort(function (a, b) {
222+
return a.localeCompare(b);
223+
});
221224
} catch (e) {
222225
console.log('error', e)
223226
}

0 commit comments

Comments
 (0)