** 開始寫了一個排序一直報錯 上代碼:
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 百度了下錯誤
