code: public static void sort(long[] longArray) {
          boolean swapped = true;
          
          while(swapped) {
              swapped = false;
              
              for(int i = 0; i < (longArray.length - 1 ); i++) {
                  if(longArray[i] > longArray[i + 1]) {
                      TrivialSwap.swap(longArray, i, i + 1);
                      
                      swapped = true;
                  }
              }            
          }
      }
docs: Sort the long array in ascending order using this algorithm.
  
  @param longArray the array of longs that we want to sort