Fixed 'group by' and 'order by' clauses to include 'by' keyword not documented in http://dev.socrata.com/docs/queries which shows example for the url encoded style params $order but not full blown SoSQL queries.