title: Bubble Sort in C but need to move anything with a 1 all the way to the bottom. I can use riders[i].withdrawn to access it
body: <pre><code>void sortraceTime(struct RiderInfo *riders, int size){
  
   struct RiderInfo swap;
    int i = 0, j = 0, n = size;
  
   //Sorting using the Bubble sort technique
  
  for (i = 0; i &lt; n; ++i){
       for (j = i + 1; j &lt; n; ++j){
           if (riders[i].raceTime &gt; riders[j].raceTime){
               swap = riders[i];
               riders[i] = riders[j];
               riders[j] = swap;
           }//end if
       }//end inner for
   }//end outer for
      printf("\n");
      printf("--- Riders sorted by raceTime! ---\n");
      printf("\n");
  }
  </code></pre>
  
  <p>Output-----------------------------------------------------------------------</p>
  
  <p>0:24 -- S -- Jocelyn Lovell -- 1</p>
  
  <p>1:50 -- S -- Angus Young -- 0</p>
  
  <p>2:35 -- S -- Eddie Van Halen -- 0</p>
  
  <p>3:08 -- S -- Billy F. Gibbons -- 0</p>
  
  <p>3:38 -- S -- Nikki Sixx -- 0</p>
  
  <p>4:19 -- S -- Charlie Watt -- 0</p>