From bb20d1b56a4d3dcbe5ca1001d2653e97bf14ecfc Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Wed, 28 Oct 2026 12:56:40 +0000 Subject: [PATCH] Always order --- frontend/js/load.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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) =>