diff --git a/Assets/ManagedResources/~Lua/Modules/Recharge/View/GiftView.lua b/Assets/ManagedResources/~Lua/Modules/Recharge/View/GiftView.lua index 0ab0daafd7..747058d9ba 100644 --- a/Assets/ManagedResources/~Lua/Modules/Recharge/View/GiftView.lua +++ b/Assets/ManagedResources/~Lua/Modules/Recharge/View/GiftView.lua @@ -143,7 +143,12 @@ function GiftView:RefreshGiftData() table.insert(shopData,topspeedData[i]) end table.sort(shopData,function(a,b) - return a.sortId < b.sortId + if a.sortId == b.sortId then + return a.DataType > b.DataType + else + return a.sortId > b.sortId + end + end) local callBack = function(index, item) self:RefreshShowData(item, shopData[index].data, self.buyType, shopData[index].DataType)