def get_ordering(self):
        if not self.aggregate:
            return super(GeoQuery, self).get_ordering()
        else:
            return ()
This routine is overridden to disable ordering for aggregate
dataset/ETHPy150Open dcramer/django-compositepks/django/contrib/gis/db/models/sql/query.py/GeoQuery.get_ordering