besnoi/lovelib

(itables) table.isort does not accept nil as a sorting function

Closed this issue · 0 comments

The standard table.sort function provided in Lua 5.1 allows for a nil value for the sorting function argument. Having the assert check breaks this as it expects a function only.