Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
gbastien committed Feb 3, 2025
1 parent d209454 commit c5c67d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imio/helpers/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ def sort_on_vocab_order(values, vocab=None, obj=None, vocab_name=None):
vocab = get_vocab(obj, vocab_name)

ordered_values = [term.value for term in vocab._terms]
# do not fail a a value of values is not in ordered_values
# do not fail if a value of values is not in ordered_values
values_indexes = [ordered_values.index(value) if value in ordered_values else 999
for value in values]
return sort_by_indexes(list(values), values_indexes)

0 comments on commit c5c67d1

Please sign in to comment.