diff options
Diffstat (limited to 'lib/python/Components/PluginComponent.py')
| -rwxr-xr-x | lib/python/Components/PluginComponent.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/python/Components/PluginComponent.py b/lib/python/Components/PluginComponent.py index 93b08900..a713c3b4 100755 --- a/lib/python/Components/PluginComponent.py +++ b/lib/python/Components/PluginComponent.py @@ -122,13 +122,14 @@ class PluginComponent: for x in where: res.extend(self.plugins.get(x, [ ])) - - return res + res.sort(key=lambda x:x.weight) + return res def getPluginsForMenu(self, menuid): res = [ ] for p in self.getPlugins(PluginDescriptor.WHERE_MENU): res += p(menuid) + res.sort(key=lambda x:x.weight) return res def clearPluginList(self): |
