Page 1 of 1

sorting multidimensional array

Posted: Thu Nov 03, 2005 10:27 am
by Sanoz0r
hey

im struggling to sort my multidimensional array.
Here is a basic of my array

$catList[0][0] = "19"; //being an ID
$catList[0][1] = "Speakers"; //being the category name

$catList[1][0] = "21";
$catList[1][1] = "Printers";

$catList[2][0] = "7";
$catList[2][1] = "Motherboards";

$catList[3][0] = "12";
$catList[3][1] = "Keyboards";

I want to sort by the category name only.
I have used array_multisort() in every way i can but either it sorts both or doesnt sort at all.

Thanks!!

Posted: Thu Nov 03, 2005 10:48 am
by feyd
try using usort()