diff --git a/controlpanel/frontend/filters.py b/controlpanel/frontend/filters.py index 021a4d6ca..5c2fd0b0a 100644 --- a/controlpanel/frontend/filters.py +++ b/controlpanel/frontend/filters.py @@ -15,9 +15,9 @@ class Meta: def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) - self.filters["chart_name"].extra["choices"] = Tool.objects.values_list( - "chart_name", "chart_name" - ).distinct() + self.filters["chart_name"].extra["choices"] = ( + Tool.objects.values_list("chart_name", "chart_name").order_by().distinct() + ) self.filters["chart_name"].field.widget.attrs = {"class": "govuk-select"} self.filters["is_restricted"].field.widget.choices = [ ("all", "---------"),