title: Sorting strings in C#
body: <p>I have a delimited string that I need sorted.  First I need to check if 'Francais' is in the string, if so, it goes first, then 'Anglais' is next, if it exists.  After that, everything else is alphabetical.  Can anyone help me?  Here's what I have so far, without the sorting</p>
  
  <pre><code>private string SortFrench(string langs)
      {
         string _frenchLangs = String.Empty;
         string retval = String.Empty;
  
          _frenchLangs = string.Join(" ; ",langs.Split(';').Select(s =&gt; s.Trim()).ToArray());
  
          if (_frenchLangs.Contains("Francais"))
              retval += "Francais";
  
          if (_frenchLangs.Contains("Anglais"))
          {
              if (retval.Length &gt; 0)
                  retval += " ; ";
  
              retval += "Anglais";
          }
  
          //sort the rest
  
          return retval;
      }
  </code></pre>