Skip to content

Commit 6860105

Browse files
authored
Alphasort ros2 node list output. (#305)
For node name order to be deterministic. Signed-off-by: Michel Hidalgo <[email protected]>
1 parent e98ec96 commit 6860105

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ros2node/ros2node/verb/list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ def main(self, *, args):
3737
if args.count_nodes:
3838
print(len(node_names))
3939
elif node_names:
40-
print(*[n.full_name for n in node_names], sep='\n')
40+
print(*sorted(n.full_name for n in node_names), sep='\n')

0 commit comments

Comments
 (0)