Is there a .NET build-in method that would solve my scenario?
- Got an array of strings ex.
{ "Mark", "Tom", "Mat", "Mary", "Peter" } - I use string
"Ma"as sorting string helper - My array result is
{ "Mark", "Mary", "Mat", "Tom", "Peter" }
I know that function solving this would be easy, but I’am interested is such method exists.
PS.
Using .NET 4.0
Using .Net 3.5 (and above) the OrderByDescending and ThenBy methods in Linq will be able to do what you want. eg: