Possible Duplicate:
Ordering by the order of values in a SQL IN() clause
I have a simple query statement that pulls properties in a database by zip codes. I use an IN() statement to pass in multiple zip codes. If those zip codes are in order (increasingly further from a target zip code) is it possible to order the results by the order the zip codes are passed into the IN() statement?
For example say i have the zip codes: 77808, 77805, 77806, 77807. I pass them into my query like so
$query = "SELECT * FROM Properties WHERE zip_code IN('77808', '77805', '77806', '77807',)";
Could i order the results by properties that have the zip code of 77808 first, then 77805, then 77806, etc.? or would i need to order it after i pulled it out of the database with PHP(in this case)?