title: How to use a custom Comparer to sort an Array in a different lexical order?
body: <p>So, I'm pretty new to C# and I'm trying to order an Array using a custom Comparer.</p>
  
  <p>I created a class:</p>
  
  <pre><code>class MySorter : IComparer
  {
      public int Compare(object x, object y)
      {
          var chars = "jngmclqskrzfvbwpxdht";
          if (chars.IndexOf((char)x) &lt; chars.IndexOf((char)y))
              return -1;
          return chars.IndexOf((char)x) &gt; chars.IndexOf((char)y) ? 1 : 0;
      }
  }
  </code></pre>
  
  <p>And I have a Array full of words. 
  How exacly I can use this Compare to sort?</p>