Always order
This commit is contained in:
parent
ea84a911f4
commit
bb20d1b56a
1 changed files with 5 additions and 3 deletions
|
|
@ -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) =>
|
||||
|
|
|
|||
Loading…
Reference in a new issue