Fixes #14325: Ensure expanded numeric arrays are ordered (#14370)

* Fixes #14325: Ensure expanded numeric arrays are ordered

* Remove redundant casting to
This commit is contained in:
Jeremy Stretch 2023-11-28 17:04:10 -05:00 committed by GitHub
parent 080da68b6a
commit fc7d6e1387
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):