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

    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   百度了下错误

 

 

posted on 2020-10-20 17:59  蚁丘  阅读(685)  评论(0编辑  收藏  举报