Unless your problem is more extensive than what you're explaining here,
there's no reason to do any kind of sort.  Simply reorder the list yourself
so that whatever ends up in $title is reordered to the first index of your
$shop list...

$product = array ($id, $title, $price);
$shop = array ($product[1], $product[0], $product[2]);

-Kevin

----- Original Message -----
From: "Sebastiaan Timmers - Bean IT" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 02, 2002 6:47 AM
Subject: [PHP] array_multisort?


> Hi List,
>
> I'm having a problem sorting the following array:
>
> $product = array($id, $title, $price);
> $shop[] = $product;
>
>
> I want the array 'shop' to be sorted by the 'title' in array 'product'. I
> tried  the function 'array_multisort()', but that did not do the trick.
>
> Does anyone know how to fix this?
>
> Best regards,
>
> Sebastiaan Timmers
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to