Skip to content

Commit

Permalink
Sort parameter and recorder names alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
s-simoncelli committed Feb 17, 2024
1 parent 510e860 commit 5af30a3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ def __init__(
else:
raise ValueError("The component_type can only be 'parameter' or 'recorder'")

# sort names alphabetically
model_comp_names.sort(key=str.lower)

# check if the component type exists
all_comp_keys = self.comp_data.keys + list(include_method().keys())
if include_comp_key:
Expand Down

0 comments on commit 5af30a3

Please sign in to comment.