Hi Guys, Just after some experience...

What's the best way to sort an array of objects by one of their attributes,
accessed by $obj->getFoo() (its a number) ? I was thinking a bubble-sort,
making multiple passses and switching array elements until there are no more
switches to make.

Any tips? The array size is not very large (not will it ever be), so it's
doesn't have to be a super-lean sorting algorithm (no harm though ;) )

cheers,
neko



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

Reply via email to