Skip to content

Commit

Permalink
Fixes #14325: Ensure expanded numeric arrays are ordered (#14370)
Browse files Browse the repository at this point in the history
* Fixes #14325: Ensure expanded numeric arrays are ordered

* Remove redundant casting to
  • Loading branch information
jeremystretch authored Nov 28, 2023
1 parent 080da68 commit fc7d6e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/utilities/forms/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def parse_numeric_range(string, base=10):
except ValueError:
raise forms.ValidationError(f'Range "{dash_range}" is invalid.')
values.extend(range(begin, end))
return list(set(values))
return sorted(set(values))


def parse_alphanumeric_range(string):
Expand Down

0 comments on commit fc7d6e1

Please sign in to comment.