Always order
This commit is contained in:
parent
ea84a911f4
commit
bb20d1b56a
1 changed files with 5 additions and 3 deletions
|
|
@ -71,8 +71,10 @@ const loadQuestions = async (
|
||||||
let currentQuestions = questions.slice();
|
let currentQuestions = questions.slice();
|
||||||
|
|
||||||
if (isSearch) {
|
if (isSearch) {
|
||||||
currentQuestions = currentQuestions.filter((q) =>
|
currentQuestions = currentQuestions
|
||||||
q.source.match(sourceScheme),
|
.filter((q) => q.source.match(sourceScheme))
|
||||||
|
.sort((a, b) =>
|
||||||
|
a.source.localeCompare(b.source, "hu", { numeric: true }),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
shuffleArray(currentQuestions);
|
shuffleArray(currentQuestions);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue