Sorting Names
Author |
Message |
Beast_
|
Posted: Wed Jan 25, 2006 7:51 pm Post subject: Sorting Names |
|
|
Hey, I need help sorting names, alphabetically. I have two variables, which consist of 'firstname' and 'lastname'. I need to have the lastname data sorted out alphabetically, so my list of names are in order.
Ie :
(lastname), (firstname)
Smith, John
Turing, Alan
Your help is appreciated. Thanks |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Cervantes

|
Posted: Wed Jan 25, 2006 8:10 pm Post subject: (No subject) |
|
|
Sorting is easy. Zylum has compiled a bunch of sorting methods that are found in [Turing Source Code].
To sort strings, you just have to change the int stuff to strings. You can compare strings using the >, <, <=, =, and >= operators.
code: |
if "Minsc" > "Edwin" put
put "Go for the eyes Boo, GO FOR THE EYES!! RrraaaAAGHGHH!!!"
end if
|
|
|
|
|
|
 |
|
|