String already supports IComparable, just sort it like this:
using System;
public class Program
{
public static void Main()
{
string[] strArray = new string[]
{
"Trunk=2*12", "Trunk=2*1", "Trunk=2*2"
};
Array.Sort(strArray);
foreach (string s in strArray)
{
Console.WriteLine(s);
}
}
}
Read more:
How to use the IComparable and IComparer interfaces in C#[
^]