browser: handle default sorts in search

If there is no query text and no specified sort, default sort is
'active' (aka newest).

If there is is query text and no specified sort, default sort is
'relevance'.

Omit 'relevance' tab when search does not contain query text.