diff --git a/src/edge_containers_cli/cmds/commands.py b/src/edge_containers_cli/cmds/commands.py index e263cd4e..2d0382a7 100644 --- a/src/edge_containers_cli/cmds/commands.py +++ b/src/edge_containers_cli/cmds/commands.py @@ -181,6 +181,9 @@ def _ps(self, running_only: bool) -> None: row_styles=["", "dim"], box=box.ROUNDED, ) + + # Sort by service name + services_df = services_df.sort("name") for row in services_df.to_dicts(): table.add_row(*list(map(str, row.values()))) console.print(table)