Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Sorting an Array
January 16, 2008, 4:48 pm
rate this thread
im going to loop through 17thousand mysql entries (each entry has
aunique, and incremental, id) then calculate a rating of each entry
based on some other information. (between 1 and 5)
i then want to sort the data with the highest rated entries at the top
of the list?
my first plan was to add each calculation into an array, as the array
number would match the unique id, then at the end use the sort
function, but then i would lose the unique id information by doing
is there some way to use sort on an array of array[id][rating]? or an
array of objects somehow?
thanks for any help,