lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



Thanks Jamie, but this don't work, what I like is sort a list of strings, I know, there a function for this on Lua, but I need this to create a tutorial about sort...

Strings are compared lexically by > and <. The exact order is based on the character codes, so:

"red" > "blue"
"blue" > "aqua"

but

"Blue" < "blue"

Hope that helps... it's certainly a heap easier than strcmp.

-Adam