code: def order_by(self, *field_names):
          
          if not self._search_ordered:
              self._search_ordered = len(self._search_terms) > 0
          return super(SearchableQuerySet, self).order_by(*field_names)
docs: Mark the filter as being ordered if search has occurred.