Home : Products : Gossamer Links : Development, Plugins and Globals :

Products: Gossamer Links: Development, Plugins and Globals: Order of Search Results: Edit Log

Here is the list of edits for this post
Order of Search Results
Ive searched and read many hundreds of different posts. Some are just dead ends, some are too old to work I think.

So Im asking again:

How can I sort the order of the search results?

All my links have an attribute lets say called 1 2 3 4 5 6.
When searched, they all get alphabeticly and attributes in any order.
I need to make it where my first results are 3 then 5 then 1 and then the rest.
Categories are not an issue since all links in a category have the same attribute.

Something like:

<%if attirbte = 3%>
3 3 3 3 3 3
<%elseif attribute = 5%>
5 5 5 5 5 5
<%elseif attribute =1%>
1 1 1 1 1 1
<%elseif%>
2 4 6 2 mixed or not, doesnt matter.
<%endif%>

Thanks Andy

Last edited by:

Gorospe: Nov 9, 2011, 1:07 PM

Edit Log: