diff --git a/frontend/js/load.js b/frontend/js/load.js index 7ed43f1..0f9a803 100644 --- a/frontend/js/load.js +++ b/frontend/js/load.js @@ -71,9 +71,11 @@ const loadQuestions = async ( let currentQuestions = questions.slice(); if (isSearch) { - currentQuestions = currentQuestions.filter((q) => - q.source.match(sourceScheme), - ); + currentQuestions = currentQuestions + .filter((q) => q.source.match(sourceScheme)) + .sort((a, b) => + a.source.localeCompare(b.source, "hu", { numeric: true }), + ); } else { shuffleArray(currentQuestions); currentQuestions = currentQuestions.filter((q) =>