'Removes any ordering settings. If \'force_empty\' is True, there will be
no ordering in the resulting query (not even the model\'s default).'

def clear_ordering(self, force_empty):

    self.order_by = []
    self.extra_order_by = ()
    if force_empty:
        self.default_ordering = False
