MCPcopy Index your code
hub / github.com/django-haystack/django-haystack / order_by

Method order_by

haystack/query.py:351–358  ·  view source on GitHub ↗

Alters the order in which the results should appear.

(self, *args)

Source from the content-addressed store, hash-verified

349 return clone
350
351 def order_by(self, *args):
352 """Alters the order in which the results should appear."""
353 clone = self._clone()
354
355 for field in args:
356 clone.query.add_order_by(field)
357
358 return clone
359
360 def highlight(self, **kwargs):
361 """Adds highlighting to the results."""

Callers 15

build_querysetMethod · 0.45
do_updateFunction · 0.45
test_order_byMethod · 0.45
test_order_byMethod · 0.45
test_load_allMethod · 0.45
test_sliceMethod · 0.45
test_values_slicingMethod · 0.45
test_related_load_allMethod · 0.45
test_related_sliceMethod · 0.45
test_load_allMethod · 0.45

Calls 2

_cloneMethod · 0.95
add_order_byMethod · 0.80

Tested by 15

test_order_byMethod · 0.36
test_order_byMethod · 0.36
test_load_allMethod · 0.36
test_sliceMethod · 0.36
test_values_slicingMethod · 0.36
test_related_load_allMethod · 0.36
test_related_sliceMethod · 0.36
test_load_allMethod · 0.36
test_sliceMethod · 0.36
test_values_slicingMethod · 0.36