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 |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Cervantes
![](http://compsci.ca/v3/uploads/user_avatars/1023105758475ab2e040bde.jpg)
|
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
|
|
|
|
|
|
![](images/spacer.gif) |
|
|