title: Custom string Comparison in C#
body: <p>I want to implement a custom string <code>IComparer</code> in C# and apply it to a ComboBox.</p>
  
  <p><strong>Actual Results</strong></p>
  
  <p>If I set the <code>ComboBox</code>'s <code>Sorted</code> property to <code>true</code>, the output is :</p>
  
  <pre><code>A
  AA
  AAA
  B
  BB
  BBB
  </code></pre>
  
  <p><strong>Wanted Results</strong></p>
  
  <p>The wanted behavior of the sorting algorithm is the following (financial developers will understand why :) ) :</p>
  
  <pre><code>AAA
  AA
  A
  BBB
  BB
  B
  </code></pre>
  
  <p><strong>Question</strong></p>
  
  <p>Is it possible to do it ? Are sorting algorithms needed here ? </p>
  
  <p>PS : I don't need a complete answer with code, i just need an idea of how it might be done ..</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>This is about credit ratings. I've omitted something in my question. The ratings have to be sorted in this order :</p>
  
  <pre><code>XXX
  XX+
  XX
  XX-
  X+
  X
  X-
  </code></pre>
  
  <p>with <code>X in ('A','B','C')</code> and <code>'A' &gt; 'B' &gt; 'C'</code></p>