title: Order_By : Django Q objects order?
body: <p>I am using operator.or_ and passing Query()objects into it. The Query()objects contains 3 queries i.e, </p>
  
  <ol>
  <li>by name</li>
  <li>by description</li>
  <li>by title</li>
  </ol>
  
  <p>when I am getting output the results not coming in order ? like I want first priority by name then description and then title ?</p>
  
  <p>Here is sample code </p>
  
  <pre><code>def search(self, search_terms, filters, category=False, vendor=False):
      terms = [term.strip() for term in search_terms.split()]
      q_objects = []
      if terms:
          for term in terms:
                  q_objects.append(Q(name__icontains=search_terms))
                  q_objects.append(Q(description__icontains=search_terms))
                  q_objects.append(Q(title__icontains=search_terms))
      qs = self.get_query_set()
      if len(q_objects) &gt; 1:
          return qs.filter(reduce(operator.or_, q_objects))
      else:
          return qs
  </code></pre>
  
  <p>So can any one help this to search order by name first after that by description and then title ?</p>
  
  <p>Thanks In Advance !</p>