From b68d802faef038ab17bfbc62d39d2789b08e88fb Mon Sep 17 00:00:00 2001 From: John Knox Date: Thu, 26 Jul 2018 03:24:12 -0700 Subject: [PATCH] Sort plugins alphabetically Summary: Show plugins in alphabetical order in the main sidebar, so you can more easily find the one you're insterested in. Reviewed By: passy Differential Revision: D8995900 fbshipit-source-id: 2ce4a4f4ac7491378e09da8b6ada3f60102a36cb --- src/plugins/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/index.js b/src/plugins/index.js index e31cdde91..c6b207286 100644 --- a/src/plugins/index.js +++ b/src/plugins/index.js @@ -76,6 +76,7 @@ const exportedPlugins: Array>> = Array.from( } }) .filter(Boolean) - .filter(plugin => plugin.prototype instanceof SonarBasePlugin); + .filter(plugin => plugin.prototype instanceof SonarBasePlugin) + .sort((a, b) => (a.title || '').localeCompare(b.title || '')); export default exportedPlugins;