There's currently no system supported way to sort search results for the all-Stack Exchange search. However, you can do so manually within the currently displayed page by executing some JavaScript.
Personally, I like to see lots of results on a single page, so I normally manually set the number of responses per page to 100 (the maximum), by adding &pagesize=100
to the URL. Given that the tab=newest
parameter you provided on your example search URL does nothing, that would give a URL for your example search of https://stackexchange.com/search?q=banana%20pancakes&pagesize=100
.
I keep the JavaScript which I use to sort a page of results by date in a bookmarklet. That code is:
javascript:void (function() {
function getEpochFromDateInTitle(el) {
return (new Date($(el).find('.relativetime')[0].title.replace(/ /, 'T'))).valueOf();
}
const searchResults = $('.search-results').addClass('makyen-is-sorted').toggleClass('makyen-sort-order');
const sortOrder = searchResults.hasClass('makyen-sort-order') ? 1 : -1;
searchResults.prepend($('.search-results > .question').toArray().sort((a, b) => (sortOrder * (getEpochFromDateInTitle(b) - getEpochFromDateInTitle(a)))));
})()
Having the code in a bookmarklet allows me to sort the search results with just a click. The above code is written such that executing the code again will reverse the sort order, so you can toggle back and forth between newest first and oldest first.
created: <date-here>
as well.https://stackexchange.com
's search is probably related to the fact that nearly every aspect of that page's design seems outdated/not in line with that of the rest of the network...