title: Cannot apply Operator '<' to operands of type T and T
body: <p>so here's my code</p>
  
  <pre><code>public void BubbleSort&lt;T&gt;(T[] array) where T : IComparable&lt;T&gt;
  {
      for (int i = 0; i &lt; array.Length; i++)
      {
          for (int j = 1; j &lt; array.Length; j++)
          {
              if (array[j] &lt; array[j - 1])
              {
  
              }
          }
      }
  }
  </code></pre>
  
  <p>and before you shoot be down for not searching. I have searched and one of the answers here on SO said to use an icomparable interface to solve the problem.</p>
  
  <p>unfortunately i am not going anywhere with this error.</p>