Date: 07/08/01
- Next message: Chris Lambert - WhiteCrown Networks: "Re: [PHP] Next Book"
- Previous message: zerosumzero <email protected>: "Re: [PHP] multiple outputs to mysql_query()"
- Next in thread: Chris Lambert - WhiteCrown Networks: "Re: [PHP] Sort an array by its values"
- Reply: Chris Lambert - WhiteCrown Networks: "Re: [PHP] Sort an array by its values"
- Maybe reply: Aaron Bennett: "RE: [PHP] Sort an array by its values"
- Reply: Andrew Braund: "RE: [PHP] Sort an array by its values"
- Maybe reply: Aaron Bennett: "RE: [PHP] Sort an array by its values"
- Reply: Justin Farnsworth: "Re: [PHP] Sort an array by its values"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Chris Lambert - WhiteCrown Networks: "Re: [PHP] Next Book"
- Previous message: zerosumzero <email protected>: "Re: [PHP] multiple outputs to mysql_query()"
- Next in thread: Chris Lambert - WhiteCrown Networks: "Re: [PHP] Sort an array by its values"
- Reply: Chris Lambert - WhiteCrown Networks: "Re: [PHP] Sort an array by its values"
- Maybe reply: Aaron Bennett: "RE: [PHP] Sort an array by its values"
- Reply: Andrew Braund: "RE: [PHP] Sort an array by its values"
- Maybe reply: Aaron Bennett: "RE: [PHP] Sort an array by its values"
- Reply: Justin Farnsworth: "Re: [PHP] Sort an array by its values"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

