[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Compare 2 strings?
- From: Jadek <jadek@...>
- Date: Fri, 02 Jul 2004 22:59:02 -0400
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