I\'m running into a very strange issue that I have found no explanation for yet. With SQL Server 2008 and using the GROUP BY it is ordering my columns without any ORDER BY s
If you don't specify an order by clause, SQLServer is free to return the results in any order.
Maybe in your specific query it will return results ordered, but that doesn't mean it will always sort resltsets when using a group by clause.
Maybe (just maybe) it's doing some hash aggregate to compute the group by and the hash table happens to be sorted by 1,2,3,4. And then ir returning rows in the hash order...