def order_by(self, *args):
        
        self._ordering = []
        for col in args:
            self._ordering.append(( (col.startswith("-") and col[1:]) or col, (col.startswith("-") and -1) or 1 ))
            
        self._cursor.sort(self._ordering)
        return self
Test that the reference object's representation works
dataset/ETHPy150Open aparo/django-elasticsearch/django_elasticsearch/manager.py/QuerySet.order_by--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/regressiontests/dispatch/tests/test_saferef.py/SaferefTests.testRepresentation