Originally Posted by Layrajha
I haven't tested it, but I'd assume that the basic "<" operator is the alphabetical order, when used to compare strings. Thus, doing
would work, or if you want to use table.sort(table, f), you could define
Code:
function f(a,b)
return a<b
end
|
I think Lua can't compare string values with "<". strbyte is required to turn them in numbers