Hi Maarten, thanks for the response. Yes I am including the column I am OrderingBy (DocumentPublishFrom) in my column list. When I take the query and run it in SQL I get exactly the results I expect, a distinct list sorted in decending order. It is only when I run it through the DataQuery API that it does not respect my OrderBy if I also have Distinct (see below)
DataSet newslineItems = new DataQuery(QueryName)
.Distinct(true)
.Columns(Columns)
.Where(WhereCondition)
.OrderBy(OrderDirection.Descending,OrderBy)
.Page(QueryHelper.GetInteger("i", 0), QueryHelper.GetInteger("s", 100))
.Execute();