Thread: Sorting Arrays
View Single Post
  #3 (permalink)  
Old 08-16-2006, 09:52 PM
falco85 falco85 is offline
Programmer
 
Join Date: Apr 2006
Posts: 105
Credits: 0
Rep Power: 10
falco85 is on a distinguished road
Default

Well I have an array that looks like this:

array[0] = "data1|data2|data3|data4";
array[1] = "data1|data2|data3|data4";

I need the array sorted by data3. The only way I can think of doing it is by cycling through the array - exploding it and then adding the data to another array. Is that right?
Reply With Quote