From f59fa1a740d2e5c36deb935cd146664cff52e071 Mon Sep 17 00:00:00 2001 From: Claudio-Emmolo <113107618+Claudio-Emmolo@users.noreply.github.com> Date: Tue, 2 Jul 2024 10:49:10 +0200 Subject: [PATCH] Order shortcodes by title --- src/shortcodeList.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shortcodeList.js b/src/shortcodeList.js index 14bdd43..5f2409a 100644 --- a/src/shortcodeList.js +++ b/src/shortcodeList.js @@ -103,6 +103,7 @@ tinymce.PluginManager.add('shortcodeList', function (editor, url) { description: 'Move the products block in BestOf article - Tom\'s Hardware* Spaziogames*' } ] + shortcodes.sort((a, b) => a.title.localeCompare(b.title)) const content = `