Ok Im a real newbie and my issue is this.
I have data comign in with a while statment.
This data is basically
Name
Level
Percent
currently it is not sorted correctly by level. I would like to do this but I am at a loss as to how.
I have gotten as far as to put it into an array but then I do not know how to sort the array by level.
I am currently adding them to the array as such.
$Items[$count][Level] = $Item[Level];
when i use print_r i get this
Array ( [0] => Array ( [Name] => NameOne [Level] => 4) [1] => Array ( [Name] => NameTwo [Level] => 5) [2] => Array ( [Name] => NameThree [Level] => 1 )
Sorting it before the while statement is not viable. My thoughts are to let this while statement bring the data in ,. put it into the array ,. sort it and then print it in order.