Sort an array by its values

From: Date: Sun, 08 Jul 2001 08:25:34 +0000
Subject: Sort an array by its values
Groups: php.general 
Request: Send a blank email to php-general+get-56732@lists.php.net to get a copy of this message
Hi All, I'm trying to sort an array of objects by the value of one of those objects... for instance, I'll have an object with 2 properties, "id" and "score", where id is unique and score is its relevant (and sometimes simelar) score. i've tried using sort() and asort() but i can't figure how to base the sorting off the value (i.e. score) of the object in the array. Any help? -- Aaron

« previous php.general (#56732) next »