Re: Array Sorting Help
| From: | HKG) | Date: | Mon, 16 Feb 2004 16:55:25 +0000 |
| Subject: | Re: Array Sorting Help | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-22849@lists.php.net to get a copy of this message | ||
On Mon, 2004-02-16 at 17:49, Herhuth, Ron wrote:
> What I would like to do is to sort the results based on the
> "percentageMatch" Obviously my simple flat array will not do the trick.
Why don't you just sort them in the database before returning the result
set?
SELECT ...
FROM ...
WHERE ...
ORDER BY <percentageMatch1>