On Wed, Oct 24, 2001 at 10:43:53AM +0100, L Melville wrote:

> Is it possible to sort a class array using array multisort, I have two items
> in each class that I wish to sort by, one is a text and the other is the
> first item in an array within within each class. i.e.;-
> 
> $class[$index]->text;
> $class[$index]->array[0];
> 
> how can I do this?

I'd use usort() instead.  http://www.php.net/manual/en/function.usort.php

The manual page has a couple examples for sorting objects by their member
variables.

Matt

-- 
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