[lua] table.sort(_table, comp)使用要点

 table.sort(_table, comp)

comp中,当

if v1 < v2 then
  return true
else
  return false
end

必须时v1<v2,如果时v1<=v2,则会陷入无限循环不断把后面换前。

原文地址:https://www.cnblogs.com/Faiz-room/p/6826891.html