table.sort(_table, comp)
comp中,当
if v1 < v2 then
return true
else
return false
end
必须时v1<v2,如果时v1<=v2,则会陷入无限循环不断把后面换前。
table.sort(_table, comp)
comp中,当
if v1 < v2 then
return true
else
return false
end
必须时v1<v2,如果时v1<=v2,则会陷入无限循环不断把后面换前。
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。