Depends - if the string is literally:
string s = "a12,a11,a20,a45";
Then the first thing to do is separate the items you want to sort. String.Split will do that:
string s = "a12,a11,a20,a45";
string[] parts = s.Split(',');
You can then sort the parts:
string s = "a12,a11,a20,a45";
string[] parts = s.Split(',');
Array.Sort(parts);
And finally, rebuild the string:
string s = "a12,a11,a20,a45";
string[] parts = s.Split(',');
Array.Sort(parts);
s = string.Join(",", parts);