diff --git a/port.py b/port.py index 9c926ee..19c2bab 100644 --- a/port.py +++ b/port.py @@ -1076,6 +1076,7 @@ class Portainer: def restart_service(self, endpoint_id, service_id): stacks = [(s["Id"], s["Name"]) for s in self.get_stacks(endpoint_id)] + stacks = sorted(stacks, key=lambda x: x[1]) stack_id = radiolist_dialog( title="Select one service", text="Choose a service:",