Greetings all,
I have an array of associative arrays:
<?
$list[0]['name'] = 'Testname';
$list[0]['userid'] = '111';
$list[0]['age'] = '11';
$list[1]['name'] = 'Testname2';
$list[1]['userid'] = '222';
$list[1]['age'] = '22';
$list[2]['name'] = 'Testname3';
$list[2]['userid'] = '333';
$list[2]['age'] = '33';
$list[3]['name'] = 'Testname4';
$list[3]['userid'] = '444';
$list[3]['age'] = '44';
?>
How would I go on sorting the list by userid or age?
I also tried to do bubble sort, but it passed the allowed excuation time, and when I try to allow more it keeps on going ang going and going infinte?
I appreciate any help,
Peace,