I have implemented a WCF oData service and can successfully query the oData service from LINQPad. Within my oData service I am sorting a memory resident collection into a logical business order and have confirmed via a raw html browser query the expected ordered data is shipped across the wire.
However it seems that LINQPad imposes its own default order on results based on the "ID" key of the objects shipped.
Is this expected behavior in LINQPad? Have I missed some setup property that can disable default ID sorting?
Edit: As Lasse indicated I should have included the query, here it is...
MyClass.Take (50)
And in the WCF service here is the essential collection code...
var list = new System.Collections.Generic.List<MyClass>();
.. // collection population
return list.AsQueryable();
* Update *
The local sorting behavior is specific to the ClassName.Dump(nn) LINQPad command.
Both ClassName and ClassName.ToList() display results in the order shipped from my oData service. This is still a slight problem for me since I was planning to ship LINQPad to a semi technical user testing population so they could query interim calculations in a financial modelling application. The Dump() command is the first default query suggested by LINQPad.