title: How do you Bubble Sort Largest to Smallest
body: <p>Sorry am kind of lame at this. I've looked on here for a way to Bubble sort so that I can get an array to go from largest number to smallest. I've found some error in my current iteration of the sort, I can't seem to get the array to sort once it compares a smaller number to a bigger number. Here what I am using thus far.</p>
  
  <pre><code>//bubble sort
      for(int i=0;i&lt;size;i++)
      {
          for(int v=1;i&lt;(size-i);i++)
          {
              if(arrInt[v-1]&lt;arrInt[v])
              {
                  temp = arrInt[v-1];
                  arrInt[v-1]=arrInt[v];
                  arrInt[v]=temp;
              }
          }
      }
  </code></pre>