 |

Cynthia
User
Jan 29, 2003, 10:44 AM
Post #1 of 2
(1292 views)
Shortcut
|
|
search results
|
Can't Post
|
|
Is there any way to show results from a search in a diffent order? RIght now the results are alphabetized but lets say I would like the results displayed and arranged by telephone or zip code??? Can this be done? Thanks
|
|
|  |
 |

Benjamin
Staff

Jan 29, 2003, 11:36 AM
Post #2 of 2
(1289 views)
Shortcut
|
Hi Cynthia, Sure! What you have to do is add a hidden field to your search form - probably your _search_query.html template file, like this: <input type="hidden" name="sort_order" value="50,123,forward"> Replace "50" with the database field number of either telephone or zip, and "forward" with "reverse" if you want it to sort it reverse numerically. Oh, and if an input tag with the same name="sort_order" already exists, you'll have to remove it and replace it with the above. Hope this helps! Post me back if you run into problems. Ben interactivetools.com
|
|
|  |
|