Hi there,

Supposed I have an array of objects, like:

$this[$i]->property1
$this[$i]->property2

is there any 'cheap' way to sort the array according to the values of
property1?

The only way I thought I would be able to accomplish this is to
transform this into an assoc array or something like it and then sort
it ...

I found plenty of functions for dealing with plain arrays, but nothing
- easy to use - for this. Am I just blind or do I finally have to write
a function doing that on my own?
And if so - anyone who had to do this before and come up with a really
fast solution (I guess my attempts would work - but not very efficient)

Thanks

Richard

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to