Hi,
in an Expression Engine site I am maintaining we have various weblogs (news, people, articles, etc). When using the simple search, I need to order the results by weblog to get this kind of display:
News
- news 1 (title, link and excerpt)
- news 2 (title, link and excerpt)
- etcPeople
- person 1 (name, link and custom weblog fields)
- person 2 (name, link and custom weblog fields)
- etcArticles
- article 1 (title, link and excerpt)
- article 2 (title, link and excerpt)
- etc
Currently, the search results are sorted by entry_id (as much as I know). How can I order the search results by weblog_id? Obviously iterating over the search results for every weblog does not make sense from a performance point of view!
Also, it would be great to sort results of one weblog on the basis of a custom field (e.g. ordering the people alphabetical) - is this possible?
Warm regards
Roland
Moved to HowTo by Moderator