From e454cfa27b2fae8dd8ed87a0d1ab038b3a10b7ed Mon Sep 17 00:00:00 2001 From: wangshuide2020 <7511764+wangshuide2020@user.noreply.gitee.com> Date: Fri, 30 Oct 2020 15:08:25 +0800 Subject: [PATCH] sort all the tags within one plugin when calling plugins interface. --- mindinsight/datavisual/data_transform/events_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindinsight/datavisual/data_transform/events_data.py b/mindinsight/datavisual/data_transform/events_data.py index fb27d0a8..36fc6a20 100644 --- a/mindinsight/datavisual/data_transform/events_data.py +++ b/mindinsight/datavisual/data_transform/events_data.py @@ -155,7 +155,7 @@ class EventsData: raise KeyError('Plugin %r could not be found.' % plugin_name) with self._tags_by_plugin_mutex_lock[plugin_name]: # Return a snapshot to avoid concurrent mutation and iteration issues. - return list(self._tags_by_plugin[plugin_name]) + return sorted(list(self._tags_by_plugin[plugin_name])) def tensors(self, tag): """