Hi all
Please can someone advise on how to achieve this. I need to sort the array and maintain the key indexes. The array is as:
$cart[0]['DRY']='item 1';
$cart[1]['FPA']='item 2';
$cart[2]['DRY']='item 3';
$cart[3]['FPA']='item 4';
$cart[4]['FPA']='item 5';
$cart[5]['CMP']='item 6';
$cart[6]['DRY']='item 7';
and i need to get this;
$cart[5]['CMP']='item 6';
$cart[0]['DRY']='item 1';
$cart[2]['DRY']='item 3';
$cart[6]['DRY']='item 7';
$cart[1]['FPA']='item 2';
$cart[3]['FPA']='item 4';
$cart[4]['FPA']='item 5';
Basically, I need to sort on the 2nd array keys alphabetically.
Many thanks