How to swap two strings in a single line in alphabetic order?
<p>Good day all,</p>

<p>I want to swap two strings in a single line based on its alphabetic order.</p>

<p>Example:</p>

<p>Arun 2012, Gopi 2010, Dinesh 2012. Computer Networks, Tata McGraw Hill. 745:19-22</p>

<p>In this line author names Likely Arun, Dinesh, Gopi have to swap in alphabetical order and saved in a same file for reference.</p>

<p>How could it possible to swap exactly the string array?</p>

<p>Here is what I tried:</p>

<pre><code>foreach (string strPara in strParaValue) 
{ 
   string[] strAuthorsPart = strPara.Split('.'); 
   string[] strAuthorslist = strAuthorsPart[0].Split(','); 
   string[] strAuthor = strAuthorslist[0].Split(' '); 
   if (strSplitValue[0].Contains(strAuthor[0].Trim())) 
   { 
      swt.WriteLine(strAuthor[0] + "\t"); 
   } 
   else 
   {
      swf.WriteLine(strAuthor[0] + "\t"); 
   }
}
</code></pre>

<p>Thanks
DeeGo.</p>
