Skip to content

Commit

Permalink
Add enum permissible values in alphabetical order
Browse files Browse the repository at this point in the history
  • Loading branch information
pkalita-lbl committed Jan 18, 2024
1 parent 69ee391 commit e445c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nmdc_submission_schema/datamodel/gold.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def _add_term(term_set, term, level_index):

for term_set in term_sets:
for level in levels:
pvs = [PermissibleValue(text=term) for term in term_set.terms[level]]
pvs = [PermissibleValue(text=term) for term in sorted(term_set.terms[level])]
schemaview.add_enum(EnumDefinition(
name=level.value + term_set.schema_enum_suffix + 'Enum',
permissible_values=pvs
Expand Down

0 comments on commit e445c84

Please sign in to comment.