View Single Post
04-25-08, 03:51 PM   #7
jaliborc
A Chromatic Dragonspawn
 
jaliborc's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 196
Originally Posted by Layrajha View Post
I haven't tested it, but I'd assume that the basic "<" operator is the alphabetical order, when used to compare strings. Thus, doing

Code:
table.sort(table)
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
  Reply With Quote