table.sort(_table, comp)

comp中,当

if v1 < v2 then
  return true
else
  return false
end

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

相关文章:

  • 2022-12-23
  • 2021-09-16
  • 2022-12-23
  • 2022-01-13
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
  • 2022-12-23
相关资源
相似解决方案