【魂灵宝】回收界面排序

dev_chengFeng
ZhangBiao 2021-09-16 17:05:27 +08:00
parent 20c122e096
commit 1809ae7890
1 changed files with 7 additions and 0 deletions

View File

@ -110,6 +110,13 @@ function this.SortDatas(tarEquipTreasure)
end
end
)
table.sort(tarEquipTreasure, function(a, b)
if a.itemConfig.Sort == b.itemConfig.Sort then
return a.itemConfig.Id > b.itemConfig.Id
else
return a.itemConfig.Sort < b.itemConfig.Sort
end
end)
return tarEquipTreasure
end
--英雄单个数据展示