From 0b2da2ed150469887a26e37cacc079b3990f47b3 Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Thu, 5 Sep 2019 14:05:18 +0200 Subject: [PATCH] fixes sort of plugin list --- src/app/components/plugin-manager-component.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/plugin-manager-component.js b/src/app/components/plugin-manager-component.js index 484b4eb204..314a51ae45 100644 --- a/src/app/components/plugin-manager-component.js +++ b/src/app/components/plugin-manager-component.js @@ -145,8 +145,8 @@ class PluginManagerComponent extends ViewPlugin { const isNotRequired = ({profile}) => !this.appManager.isRequired(profile.name) const isNotHome = ({profile}) => profile.name !== 'home' const sortByName = (a, b) => { - const nameA = a.name.toUpperCase() - const nameB = b.name.toUpperCase() + const nameA = ((a.profile.displayName) ? a.profile.displayName : a.profile.name).toUpperCase() + const nameB = ((b.profile.displayName) ? b.profile.displayName : b.profile.name).toUpperCase() return (nameA < nameB) ? -1 : (nameA > nameB) ? 1 : 0 }