Skip to content

Commit fc7d6e1

Browse files
Fixes #14325: Ensure expanded numeric arrays are ordered (#14370)
* Fixes #14325: Ensure expanded numeric arrays are ordered * Remove redundant casting to
1 parent 080da68 commit fc7d6e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netbox/utilities/forms/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def parse_numeric_range(string, base=10):
4040
except ValueError:
4141
raise forms.ValidationError(f'Range "{dash_range}" is invalid.')
4242
values.extend(range(begin, end))
43-
return list(set(values))
43+
return sorted(set(values))
4444

4545

4646
def parse_alphanumeric_range(string):

0 commit comments

Comments
 (0)