Computer Science Canada Sorting Names |
Author: | Beast_ [ 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 |
Author: | Cervantes [ Wed Jan 25, 2006 8:10 pm ] | ||
Post 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.
|