Thanks to both of you that helped a little, had to alter bits of their
examples to fit my needs :)
Paul Kirby
"Virgil Green" <vjg@DESPAMobsydian.com> wrote in message
news:C2nyc.98$KH5.73@newssvr23.news.prodigy.com...[color=blue]
> "Paul Kirby" <admin@initcorp.co.uk> wrote in message
> news:caabtn$qgl$1$8300dec7@news.demon.co.uk...[color=green]
> > Hello All
> >
> > I am trying to update me code to use arrays to store a group of[/color]
> information[color=green]
> > and I have come up with a problem sorting the multiple array :(
> >
> > Array trying to sort: (7 arrays put into an array) and I want to sort on
> > [count] Descending.
> > This is displayed using print_r() function.
> >
> > Array
> > (
> > [czero] => Array
> > (
> > [game_type] => czero
> > [game_label] => Condition Zero
> > [count] => 2
> > )
> > [cstrike] => Array
> > (
> > [game_type] => cstrike
> > [game_label] => Counter-Strike
> > [count] => 3
> > )
> > [dod] => Array
> > (
> > [game_type] => dod
> > [game_label] => Day of Defeat
> > [count] => 1
> > )
> > [valve] => Array
> > (
> > [game_type] => valve
> > [game_label] => Half Life
> > [count] => 0
> > )
> > [gearbox] => Array
> > (
> > [game_type] => gearbox
> > [game_label] => Opposing Force
> > [count] => 0
> > )
> > [ricochet] => Array
> > (
> > [game_type] => ricochet
> > [game_label] => Ricochet
> > [count] => 0
> > )
> > [tfc] => Array
> > (
> > [game_type] => tfc
> > [game_label] => Team Fortress Classic
> > [count] => 1
> > )
> > )
> >
> > Does anyone know how to do this ?
> > I have tried various array sorting functions without success :([/color]
>
> See
www.php.net/uasort and associated functions.
>
> - Virgil
>
>[/color]