title: Django ORM: Apply ordering to raw query sets
body: <p>Here is the raw query set Django ORM:</p>
  
  <pre><code>ob = Shop.objects.raw('SELECT * from shops GROUP BY
   (duplicate_field_name) having COUNT(*) = 1 ORDER BY some_field')
  
  listorder = ["check_in","check_out","location"]
  </code></pre>
  
  <p>This listorder part is dynamic. I don't know how it ll be. It ll change the ordering from time to time &amp; one more thing can't apply ordering on raw query sets because I want the whole data for other purpose.After that only i can apply ordering. 
  Here want ordering by the list "listorder".</p>
  
  <p><code>mObj = ob.order_by[*listorder]</code>.</p>
  
  <p>In above facing error like can't apply ordering to raw query sets. 
  Anyone having any idea?</p>