Commit 84efadf2 authored by 李维's avatar 李维

fix: 修复排序乱的问题

parent 51bc723b
...@@ -1298,7 +1298,8 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -1298,7 +1298,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 准备提交的数据 // 准备提交的数据
let data: any = {}; let data: any = {};
const voices = Game.getIns().player.voices
const voices = Game.getIns().player.voices.sort((a, b) => a.questionId - b.questionId);
const details = [] const details = []
let totalScore = 0; let totalScore = 0;
for(let i = 0; i < voices.length; i++) { for(let i = 0; i < voices.length; i++) {
......
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