Fixed if not set ordering and pk not in out_cols, use random ordering. 
Fixed if not set ordering and pk not in out_cols, use random ordering. 

avidal/django-pyodbc,avidal/django-pyodbc,michiya/django-pyodbc-azure,javrasya/django-pyodbc-azure