(self, field, desc=False, reset_sort=True)
return self._sort(sort_field, reset_sort)
Order the results by field.
Order the results by field.
Order the results by field .
def sort(self, field, desc=False, reset_sort=True):
        """Order the results by field."""
        sort_field = {
            field: {'order': 'desc' if desc else 'asc'}
        }
        return self._sort(sort_field, reset_sort)
def sort ( self , field , desc = False , reset_sort = True ) : sort_field = { field : { 'order' : 'desc' if desc else 'asc' } } return self . _sort ( sort_field , reset_sort )