diff --git a/kolibri/plugins/coach/assets/src/composables/useQuizzes.js b/kolibri/plugins/coach/assets/src/composables/useQuizzes.js index b878ef147b3..f74a55e2245 100644 --- a/kolibri/plugins/coach/assets/src/composables/useQuizzes.js +++ b/kolibri/plugins/coach/assets/src/composables/useQuizzes.js @@ -1,9 +1,11 @@ -import sortBy from 'lodash/sortBy'; +import orderBy from 'lodash/orderBy'; import { computed, getCurrentInstance } from 'kolibri.lib.vueCompositionApi'; export default function useQuizzes(store) { store = store || getCurrentInstance().proxy.$store; - const quizzes = computed(() => sortBy(store.getters['classSummary/exams'], 'date-created')); + const quizzes = computed(() => + orderBy(store.getters['classSummary/exams'], 'date_created', 'desc'), + ); const fetchQuizSizes = () => store.dispatch('classSummary/fetchQuizzesSizes'); return {