Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sorting an array in a particular field.. Help please!!

Status
Not open for further replies.

angel0910

Programmer
Jun 26, 2002
17
0
0
SG
Hello everyonez :)

I am facing this problem...
I have a table whereby i would display the particulars of a person..

EG:
Name Address Hobbies
Hello Japan Tennis, Swimming

for the particular field hobbies
there is a list/array of values..
how can i sort the values by
1. the first element(in this case Tennis) n the rest of the record's first element?
2. if can, how to sort the whole array against the rest of the arrays?
Eg: first one Tennis, Swimming
second one Tennis, Running, Swimming
third one Tennis, Running, Soccer, Swimming ??
pls help me :)
thanxs a lot :)
 
sorriez i mean
first one Tennis, Running, Soccer, Swimming
second one Tennis, Running, Swimming
third one Tennis, Swimming ??
 
Are you using an array of objects, or multiple arrays? how some of your code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top