Originally posted by Matt Parsons
damn, left that bit out when copying and pasting onto this board.
I know you tell it! 🙂
The problem is the column you want order... by name? by number?...
Chosen one, you have to change your array $chosenlist to this:
Sort by name:
$chosenlist["Liam Bowden"] = array("Liam Bowden","7","Forward");
$chosenlist["Rob Gwilliam"]=array("Rob Gwilliam","4","Midfield"),;
$chosenlist["Steve Bowgen"]=array("Steve Bowgen","9","Defence");
$chosenlist["Matthew Parsons"]=array("Matthew Parsons","2","Goalie");
sort by number:
$chosenlist["7"] = array("Liam Bowden","7","Forward");
$chosenlist["4"]=array("Rob Gwilliam","4","Midfield"),;
$chosenlist["9"]=array("Steve Bowgen","9","Defence");
$chosenlist["2"]=array("Matthew Parsons","2","Goalie");
then just:
asort($chosenlist); reset($chosenlist);
I hope this help.
(clearless:
$chosenlist = array("7"=>array("Liam Bowden","7","Forward"),
"4"=>array("Rob Gwilliam","4","Midfield"),
"9"=>array("Steve Bowgen","9","Defence"),
"2"=>array("Matthew Parsons","2","Goalie") );
)