Fix null sort broken by b1c58e9

This commit is contained in:
Jack Wilsdon 2016-04-28 03:30:27 +01:00
parent 77b48bac7e
commit 46179850c5

View file

@ -841,8 +841,8 @@ class SlowFieldSort(FieldSort):
class NullSort(Sort):
"""No sorting. Leave results unsorted."""
def sort(self):
return self
def sort(self, items):
return items
def __nonzero__(self):
return self.__bool__()