【站内信】排序

dev_chengFeng
ZhangBiao 2021-07-02 16:27:36 +08:00
parent 0a403e2099
commit 3d462c708f
1 changed files with 7 additions and 4 deletions

View File

@ -232,11 +232,14 @@ end
function MailMainPanel:SortAllMail(allMail)
table.sort(allMail, function(a,b)
--return a.state < b.state
if a.state == b.state then
return a.sendTime > b.sendTime
if a.isTop == b.isTop then
if a.state == b.state then
return a.sendTime > b.sendTime
else
return a.state < b.state
end
else
return a.state < b.state
return a.isTop > b.isTop
end
end)
end