private static void fix ( IndexedSortable s , int pN , int pO , int rN , int rO ) { if ( s . compare ( pN , pO , rN , rO ) > 0 ) { s . swap ( pN , pO , rN , rO ) ; } }
Fix the records into sorted order swapping when the first record is greater than the second record .