From b3fd7951965f6b6eabb3a709fc74359057098438 Mon Sep 17 00:00:00 2001 From: BeritJanssen Date: Mon, 20 Nov 2023 14:30:44 +0100 Subject: [PATCH] sort rules files by ID --- backend/experiment/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/experiment/forms.py b/backend/experiment/forms.py index 148aa680b..acbf046ce 100644 --- a/backend/experiment/forms.py +++ b/backend/experiment/forms.py @@ -130,7 +130,7 @@ def __init__(self, *args, **kwargs): choices += ((i, EXPERIMENT_RULES[i].__name__),) self.fields['rules'] = ChoiceField( - choices=choices + choices=sorted(choices) ) self.fields['questions'] = TypedMultipleChoiceField(