Commit f56cc843 by Иван Кубота

change order

parent b5b8151b
...@@ -341,8 +341,8 @@ module.exports = { ...@@ -341,8 +341,8 @@ module.exports = {
qHash[a.quiz_question_id].answers.push(a); qHash[a.quiz_question_id].answers.push(a);
}); });
questions.sort((a,b)=>b.number-a.number); questions.sort((a,b)=>a.number-b.number);
questions.forEach(q=>q.answers.sort((a,b)=>b.id-a.id)) questions.forEach(q=>q.answers.sort((a,b)=>a.id-b.id))
return questions; return questions;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment