0

Hi,

I want to be able to sort a multidimensional array using its second dimension to sort the first. It is a list of sporting teams with points stored like this:

$teams[$teamnumber]['points']
$teams[$teamnumber]['players']
$teams[$teamnumber]['name']

These teams are to be shown in a league table which is why they needed to be sorted in descending order of points, however the data must not be mismatched or teams may end up with the wrong name, players etc.

2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by mcatominey
0

I've just looked at that but i'm not sure that it would help, I only want to sort the array using one Keys values not multiple fields.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.