From 5ece48500c6926530c4b257a7c468aa5a07b65b4 Mon Sep 17 00:00:00 2001 From: grossmj Date: Mon, 20 Sep 2021 20:09:58 +0930 Subject: [PATCH] Sort symbols by theme. Fixes https://github.com/GNS3/gns3-gui/issues/3230 --- gns3server/controller/symbols.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gns3server/controller/symbols.py b/gns3server/controller/symbols.py index af53f32b..16bd5012 100644 --- a/gns3server/controller/symbols.py +++ b/gns3server/controller/symbols.py @@ -104,8 +104,7 @@ class Symbols: 'builtin': False, 'theme': "Custom symbols"}) self._symbols_path[symbol_file] = os.path.join(root, filename) - - symbols.sort(key=lambda x: x["filename"]) + symbols.sort(key=lambda x: x["theme"]) return symbols def symbols_path(self):