|
well it is not really possible to sort results on a mysql field that does not exist. Sorting is done on a field in the products table like title,extra fields,rating etc. Results are sorted when returned by the query. Its basically in mysql and order statement like
ORDER BY title DESC
Distance calculations for zipcode are done after the sorted results are returned.
|