Update - 2.1.0.147
EN: 2.1.0.147 CN: 2.1.0.147 JP: 2.1.0.149 KR: 2.1.0.154
This commit is contained in:
@@ -95,6 +95,9 @@ function RegionBossBuildCtrl:RefreshList()
|
||||
end
|
||||
table.sort(self.tbCurShow, function(a, b)
|
||||
if self.nSortype == SortType.Time then
|
||||
if a.bDislike ~= b.bDislike then
|
||||
return b.bDislike
|
||||
end
|
||||
if self.nSortOrder == SortOrder.Descending then
|
||||
if a.isCanUse ~= b.isCanUse then
|
||||
return a.isCanUse and not b.isCanUse
|
||||
@@ -106,23 +109,28 @@ function RegionBossBuildCtrl:RefreshList()
|
||||
end
|
||||
return a.nBuildId < b.nBuildId
|
||||
end
|
||||
elseif self.nSortOrder == SortOrder.Descending then
|
||||
if a.isCanUse ~= b.isCanUse then
|
||||
return a.isCanUse and not b.isCanUse
|
||||
end
|
||||
if a.nScore ~= b.nScore then
|
||||
return a.nScore > b.nScore
|
||||
else
|
||||
return a.nBuildId > b.nBuildId
|
||||
end
|
||||
else
|
||||
if a.isCanUse ~= b.isCanUse then
|
||||
return a.isCanUse and not b.isCanUse
|
||||
if a.bDislike ~= b.bDislike then
|
||||
return b.bDislike
|
||||
end
|
||||
if a.nScore ~= b.nScore then
|
||||
return a.nScore < b.nScore
|
||||
if self.nSortOrder == SortOrder.Descending then
|
||||
if a.isCanUse ~= b.isCanUse then
|
||||
return a.isCanUse and not b.isCanUse
|
||||
end
|
||||
if a.nScore ~= b.nScore then
|
||||
return a.nScore > b.nScore
|
||||
else
|
||||
return a.nBuildId > b.nBuildId
|
||||
end
|
||||
else
|
||||
return a.nBuildId > b.nBuildId
|
||||
if a.isCanUse ~= b.isCanUse then
|
||||
return a.isCanUse and not b.isCanUse
|
||||
end
|
||||
if a.nScore ~= b.nScore then
|
||||
return a.nScore < b.nScore
|
||||
else
|
||||
return a.nBuildId > b.nBuildId
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
@@ -244,6 +252,9 @@ function RegionBossBuildCtrl:FilterAndSortBuildData()
|
||||
return bSelectA
|
||||
end
|
||||
end
|
||||
if a.bDislike ~= b.bDislike then
|
||||
return b.bDislike
|
||||
end
|
||||
if self.nSortOrder == SortOrder.Descending then
|
||||
return a.nBuildId > b.nBuildId
|
||||
else
|
||||
@@ -271,6 +282,9 @@ function RegionBossBuildCtrl:FilterAndSortBuildData()
|
||||
return bSelectA
|
||||
end
|
||||
end
|
||||
if a.bDislike ~= b.bDislike then
|
||||
return b.bDislike
|
||||
end
|
||||
if self.nSortOrder == SortOrder.Descending then
|
||||
if a.nScore ~= b.nScore then
|
||||
return a.nScore > b.nScore
|
||||
|
||||
Reference in New Issue
Block a user