partitions a portion of an array . concode_field_sep PlaceHolder placeHolder concode_field_sep void sort concode_elem_sep void sort
int function ( int [ ] arg0 , int arg1 , int arg2 ) { int loc0 = arg0 [ arg1 ] ; int loc1 = arg1 - 1 ; int loc2 = arg2 + 1 ; while ( loc1 < loc2 ) { loc1 ++ ; while ( arg0 [ loc1 ] < loc0 ) { loc1 ++ ; } loc2 -- ; while ( arg0 [ loc2 ] > loc0 ) { loc2 -- ; } if ( loc1 < loc2 ) { ArrayUtil . swap ( arg0 , loc1 , loc2 ) ; } } return loc2 ; }