Lua table.sort invokes the comparing function with the same element
I have stumbled upon a strange behavior of table.sort()
, in which the comparing function is invoked by passing the same array element in both parameters.
I have stumbled upon a strange behavior of table.sort()
, in which the comparing function is invoked by passing the same array element in both parameters.