diff --git a/src/Mod/Path/PathScripts/PathSetupSheet.py b/src/Mod/Path/PathScripts/PathSetupSheet.py index 2eb8124317..4822b5a993 100644 --- a/src/Mod/Path/PathScripts/PathSetupSheet.py +++ b/src/Mod/Path/PathScripts/PathSetupSheet.py @@ -249,7 +249,7 @@ class SetupSheet: if hasattr(self.obj, prop): ops.append(name) break - return ops + return list(sorted(ops)) def setOperationProperties(self, obj, opName): PathLog.track(obj.Label, opName) diff --git a/src/Mod/Path/PathScripts/PathSetupSheetGui.py b/src/Mod/Path/PathScripts/PathSetupSheetGui.py index 5816a471b7..0eddaa9130 100644 --- a/src/Mod/Path/PathScripts/PathSetupSheetGui.py +++ b/src/Mod/Path/PathScripts/PathSetupSheetGui.py @@ -207,7 +207,7 @@ class TaskPanel: self.obj = vobj.Object PathLog.track(self.obj.Label) self.globalForm = FreeCADGui.PySideUic.loadUi(":/panels/SetupGlobal.ui") - self.ops = [OpTaskPanel(self.obj, name, op) for name, op in PathUtil.keyValueIter(PathSetupSheet._RegisteredOps)] + self.ops = sorted([OpTaskPanel(self.obj, name, op) for name, op in PathUtil.keyValueIter(PathSetupSheet._RegisteredOps)], key = lambda op: op.name) self.form = [self.globalForm] + [op.form for op in self.ops] FreeCAD.ActiveDocument.openTransaction(translate("Path_SetupSheet", "Edit SetupSheet"))