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.