From f6e623ca9c703f255138e8d520ec06a6d3d9b103 Mon Sep 17 00:00:00 2001 From: Sebastian Brzuzek Date: Mon, 15 Mar 2021 15:03:50 +0100 Subject: [PATCH] Fixed sorting of sketches and examples - ignore case issue #185 --- arduino-ide-extension/src/browser/contributions/examples.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arduino-ide-extension/src/browser/contributions/examples.ts b/arduino-ide-extension/src/browser/contributions/examples.ts index 4875818b6..480095097 100644 --- a/arduino-ide-extension/src/browser/contributions/examples.ts +++ b/arduino-ide-extension/src/browser/contributions/examples.ts @@ -100,7 +100,7 @@ export abstract class Examples extends SketchContribution { } }; pushToDispose.push(this.commandRegistry.registerCommand(command, handler)); - this.menuRegistry.registerMenuAction(submenuPath, { commandId, label: sketch.name }); + this.menuRegistry.registerMenuAction(submenuPath, { commandId, label: sketch.name, order: sketch.name.toLocaleLowerCase() }); pushToDispose.push(Disposable.create(() => this.menuRegistry.unregisterMenuAction(command))); } }