In many websites, like this one or YouTube for example, after you've done a search (ex. https://ux.stackexchange.com/search?q=something) you can click an option to sort the results by a different criteria (following with the same example, you can click on Newest instead of the default Relevance) and the search is sorted by the new criteria. That's fair enough.
But, if I edit the query (ex. I replace "something" with "anything") and, without clicking on "search" (and there's no instant search here), I click on another sort criteria (ex. votes), my edited query is lost. I find this quite annoying. Shouldn't the edited query be preserved? Moreover, should the search be automatically redone with the edited query?