I apologize if the question already exists…
Is there a way to have a sorting on the (Sharepoint 2007) search result page without having to modify the code of the page…? ANd how, if so?
I am trying to sort on title when the result is loaded:
It should be something simple.., but I am new to sharepoint.. so I appreciate any help..
Thanks!!
Katya
Groetjes Katya, this really should be simple. It is not, though… 😉
The
CoreResultsWebPartonly supports sorting by relevance and by modified date. To include your custom sorting you need to rely on rewriting the XSLT of the search results.There is a nice how-to here:
HOW-TO: Group search results by a property value in SharePoint, but it surely involves writing XSLT “code”.
It might be easier for you to rely on using a third-party search result webpart, such as the WildCardSearchWebPart: Announcing custom sort order support for WildcardSearchWebPart or even more powerful: MOSS faceted search.
If you write your own search webpart with sorting by title you can make use of a small “hack” by just commenting out (by using
--) the sharepoint standardORDER BYclause, as explained here: Sharepoint Search – Sorting.