title: How to rank search results by alphabetical order (Django 2.1)
body: <p>I have code for a search engine and a button that ranks by alphabetical order, but I can't get them to work together. 
  Code for search engine:</p>
  
  <pre><code>def query_search(request):
      articles = cross_currents.objects.all()
      search_term = ''
      if 'keyword' in request.GET:
          search_term = request.GET['keyword']
          articles = articles.annotate(similarity=Greatest(TrigramSimilarity('Title', search_term), TrigramSimilarity('Content', search_term))).filter(similarity__gte=0.03).order_by('-similarity')
          if 'a-z' in request.GET:
              articles = articles.order_by('Title')
  </code></pre>
  
  <p>Code for button that ranks posts by alphabetical order:</p>
  
  <pre><code>&lt;a href="?a-z=True" type="button" class="btn btn-outline-{% if 'a-z' in request.GET %}success{% else %}secondary{% endif %}"&gt;A-Z&lt;/a&gt;
  </code></pre>
  
  <p>The button ranks all posts by alphabetical order rather than only ranking the posts in the search results. It's probably because I am not combining the value of <code>request.GET</code> generated by the button and the value generated by the keyword entered into the search engine. How can I edit the code so that the button only ranks the posts in the search results?</p>