MCPcopy Create free account
hub / github.com/django-haystack/django-haystack / add_order_by

Method add_order_by

haystack/backends/__init__.py:837–839  ·  view source on GitHub ↗

Orders the search result by a field.

(self, field)

Source from the content-addressed store, hash-verified

835 self.query_filter.end_subtree()
836
837 def add_order_by(self, field):
838 """Orders the search result by a field."""
839 self.order_by.append(field)
840
841 def clear_order_by(self):
842 """

Callers 5

order_byMethod · 0.80
latestMethod · 0.80
test_add_order_byMethod · 0.80
test_clear_order_byMethod · 0.80
test_cloneMethod · 0.80

Calls

no outgoing calls

Tested by 3

test_add_order_byMethod · 0.64
test_clear_order_byMethod · 0.64
test_cloneMethod · 0.64