Steps to reproduce: write a gapfill question with 2 or more numerical answers. Select the "sort students' answers before marking" option. Now add another gap with a different type (e.g. choose one from a list). The option to deselect "sort students' answers before marking" disappears but it can't now sort the answers.
The error message is "Error evaluating variable mark: variable numTicks is not defined". No feedback from the new gap appears either.
Steps to reproduce: write a gapfill question with 2 or more numerical answers. Select the "sort students' answers before marking" option. Now add another gap with a different type (e.g. choose one from a list). The option to deselect "sort students' answers before marking" disappears but it can't now sort the answers.
The error message is "Error evaluating variable mark: variable numTicks is not defined". No feedback from the new gap appears either.![image](https://user-images.githubusercontent.com/5709336/215994990-a6043802-0559-4775-bd21-587ecfb88d68.png)