Hei,
i think order by is ordering things wrongly. Example code:
static void Main()
{
// Create a delicious data source.
string[] fruits = { "äax", "ääü", "äbü" };
// Query for ascending sort.
IEnumerable<string> sortAscendingQuery =
from fruit in fruits
orderby fruit //"ascending" is default
select fruit;
// Execute the query.
Console.WriteLine("Ascending:");
foreach (string s in sortAscendingQuery)
{
Console.WriteLine(s);
}
}
And the result:
Ascending:
ääü
äax
äbü
The right order should be:
äax
äbu
ääü
Anybody encountered this error before?
This linq returns the correct results – you need specify the string comparison to use.