string[] words = { "aaaa", "a-aaa", "bbbb", "b-bbbb", "000"};
var sortedWords =
from w in words
orderby w
select w;
When I run this query the expected order is 000, a-aaa,aaaa,b-bbbb and bbbb.
But the actual result is 000, aaaa,a-aaa,bbbb and b-bbbb.
I verified with SQL server its giving same as LINQ result. Is my understanding wrong or is it a bug?
Thanks in Advance.