** 开始写了一个排序一直报错 上代码:

    table.sort( normalTable, function ( b,a )
        local isSort = false
        if(b.tblItem.type ==2 and  b.tblItem.subType ~=21 and b.tblItem.subType ~= 22) then
            if(a.tblItem.type ~=2 or a.tblItem.subType ==21 or a.tblItem.subType == 22) then
                isSort = true
            end
        end
        return isSort
    end)
 
**上面这段代码一直报错  invalid order function for sorting   百度了下错误
table.sort 排序的问题

 

 

相关文章:

  • 2021-05-06
  • 2021-12-12
  • 2022-12-23
  • 2021-07-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案