Here is my LINQ query:
(from o in entities.MyTable
orderby o.MyColumn
select o.MyColumn).Distinct();
Here is the result:
{"a", "c", "b", "d"}
Here is the generated SQL:
SELECT
[Distinct1].[MyColumn] AS [MyColumn]
FROM ( SELECT DISTINCT
[Extent1].[MyColumn] AS [MyColumn]
FROM [dbo].[MyTable] AS [Extent1]
) AS [Distinct1]
Is this a bug? Where's my ordering, damnit?