I have an array with objects in it.
I need to sort this array by one of the fields inside the object. (field : price)
does anyone know how to do this?
sorting an array
Moderator: General Moderators
Re: sorting an array
Use usort() with a custom function. Example 3 on the manual page is exactly what you're after - http://uk2.php.net/usort