【优化】背包分类优化

dev_chengFeng
jiaoyangna 2020-12-29 10:33:45 +08:00
parent 19d984a641
commit d389cb93f5
1 changed files with 2 additions and 2 deletions

View File

@ -610,9 +610,9 @@ end
function this.ItemsSortDataV2(_itemDatas)
table.sort(_itemDatas, function(a, b)
if a.itemConfig.Sort == b.itemConfig.Sort then
return a.itemConfig.Id < b.itemConfig.Id
return a.itemConfig.Id > b.itemConfig.Id
else
return a.itemConfig.Sort < b.itemConfig.Sort
return a.itemConfig.Sort > b.itemConfig.Sort
end
end)
end