title: How to BubbleSort an array in descending order?
body: <pre><code>private static double[] BubbleSortAscending(double[] numberArray)
  {
      int arrayLength = numberArray.Length;
  
      for(int i = 0; i &lt; arrayLength - 1; i++)
      {
          for(int j = 0; j &lt; arrayLength - 1 - i; j++)
          {
              if(numberArray[j] &gt; numberArray[j + 1])
              {
                  double num = numberArray[j];
                  numberArray[j] = numberArray[j + 1];
                  numberArray[j + 1] = num;
              }
          }
      }
      return numberArray;
  }
  </code></pre>
  
  <p>Hello, in the code above I have managed to make it so that it sorts an array in <em>ascending</em> order, however I am fully stuck and stumped on how to <em>edit</em> or <em>change</em> it to make it sort in <em>descending</em> order? Any help would be appreciated!</p>
  
  <p>Thank you.</p>