Brian Pool
Lead maintainer
Quiz Statistics Sort - Enhanced Quiz Analysis for Educators
Quiz Statistics Sort is a lightweight local plugin that enhances Moodle's built-in Quiz Statistics report by adding interactive sorting capabilities to the "Quiz structure analysis" table. It allows teachers to sort quiz questions by their Facility Index with a simple click, making it dramatically easier to identify which questions students found most challenging.
The plugin adds a clickable header to the Facility Index column that cycles through three sorting states:
By default, the table automatically sorts in ascending order (most difficult first) when the statistics page loads, immediately highlighting problem areas.
As an educator using Moodle quizzes daily in the classroom, identifying student misconceptions is critical for effective teaching. The default Quiz Statistics report displays questions in their original quiz order, which means teachers must manually scan through the entire table to find questions with low facility indices.
Common teaching scenarios where this plugin helps:
Time savings: Instead of manually reviewing dozens of questions to find the 3-4 that need attention, teachers can instantly see problematic questions at the top of the list.
Pedagogical benefit: The Facility Index is one of the most important metrics for understanding question difficulty and student comprehension. Making this data easily sortable transforms it from a passive statistic into an actionable teaching tool.
The plugin uses AMD JavaScript modules to dynamically sort the statistics table in the browser. It hooks into the quiz statistics page using Moodle's standard callback system and requires no additional dependencies beyond jQuery (already included in Moodle).