Sorting data alphabetically
videoninja
Posts: 29
Hi All,
Just curious how you all might approach sorting data alphabetically.
Imagine a simple structure:
define_type
structure my_small_database
{
integer record_id
char name[42]
}
define_variable
my_small_database db[10]
assume the following:
db[1].name = "'Starbuck'"
db[2].name = "'Apollo'"
db[3].name = "'Colonel Tigh'"
db[4].name = "'Commander Adama'"
db[5].name = "'Baltar'"
db[6].name = "'Number 6'"
db[7].name = "'Boomer'"
db[8].name = "'Dualla'"
db[9].name = "'Tyrol'"
db[10].name = "'Athena'"
With this data, how would you go about sorting it alphabetically?
Just curious how you all might approach sorting data alphabetically.
Imagine a simple structure:
define_type
structure my_small_database
{
integer record_id
char name[42]
}
define_variable
my_small_database db[10]
assume the following:
db[1].name = "'Starbuck'"
db[2].name = "'Apollo'"
db[3].name = "'Colonel Tigh'"
db[4].name = "'Commander Adama'"
db[5].name = "'Baltar'"
db[6].name = "'Number 6'"
db[7].name = "'Boomer'"
db[8].name = "'Dualla'"
db[9].name = "'Tyrol'"
db[10].name = "'Athena'"
With this data, how would you go about sorting it alphabetically?
0
Comments
There are a few sorting routines covered in this Tips and Tricks thead:
http://www.amxforums.com/showthread.php?t=1216
The list box features that are currently supported in the R4 & DMS list boxes also support a variety of text searches similar to a what can be done w/ MySQL database manipulation. The question is when will the firmware on the TPs be updated to take advantage of these features as well?
I got excited when I first learned of this control, then was dissapointed when I learned it was limited to certain panels.