Skip to content

Commit 1af1b90

Browse files
author
Roman
committed
add sorting
1 parent 866365e commit 1af1b90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bittensor_cli/src/commands/sudo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,8 @@ async def get_hyperparameters(
671671
dict_out = []
672672

673673
normalized_values = normalize_hyperparameters(subnet, json_output=json_output)
674-
for param, value, norm_value in normalized_values:
674+
sorted_values = sorted(normalized_values, key=lambda x: x[0])
675+
for param, value, norm_value in sorted_values:
675676
if not json_output:
676677
table.add_row(" " + param, value, norm_value)
677678
else:

0 commit comments

Comments
 (0)