【优化】背包分类优化
parent
19d984a641
commit
d389cb93f5
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue