Change C# sorting behaviour
- by Erik
Lets say i have the strings abc_ and abc2_. Now, normally when sorting i C# abc2_ would come after abc_, leaving the result:
abc_
abc2_
I am using this to sort, if it matters:
var element = from c in elements
orderby c.elementName ascending
select c;
How can i change this? I want abc_ to come last. Reversing is not an option because the list is contains more than two elements.