Hello, I don't know how to handle nils my sort function gets.
When I have this checking in it, table.sort crashes after some calls.
if a == nil then
return false
elseif b == nil then
return true
end
With this error:invalid order function for sorting. But according to the documenatiton, sort function should return false, if a goes after b. True otherwise.
If I remove remove that code, it of course crashes of indexing nils.