zhangjie 1 vuosi sitten
vanhempi
commit
d4718e0ce5

+ 2 - 0
src/features/examwork/StudentExamDetail/PreviewPaperDialog.vue

@@ -217,11 +217,13 @@ export default {
                   rQuestion.answer = rQuestion.answer.map(
                     (ans) => optionMap[ans]
                   );
+                  rQuestion.answer.sort((a, b) => a - b);
                 }
                 if (rQuestion.studentAnswer) {
                   rQuestion.studentAnswer = rQuestion.studentAnswer.map(
                     (ans) => optionMap[ans]
                   );
+                  rQuestion.studentAnswer.sort((a, b) => a - b);
                 }
               }
               return rQuestion;