insertion sort . stable , in-place sorting algorithm . time complexity : o n in best case , o n ^ 2 in worst case . concode_field_sep PlaceHolder placeHolder concode_field_sep void swap concode_elem_sep void main concode_elem_sep void mergeSort concode_elem_sep void quickSort concode_elem_sep void heapSort concode_elem_sep void bubbleSort concode_elem_sep void split concode_elem_sep void copyArray concode_elem_sep int partition concode_elem_sep void merge concode_elem_sep void heapify concode_elem_sep void selectionSort concode_elem_sep void buildMaxHeap
void function ( int [ ] arg0 ) { for ( int loc0 = 1 ; loc0 < arg0 . length ; loc0 ++ ) { while ( arg0 [ loc0 ] < arg0 [ loc0 - 1 ] ) { int loc1 = arg0 [ loc0 ] ; arg0 [ loc0 ] = arg0 [ loc0 - 1 ] ; arg0 [ loc0 - 1 ] = loc1 ; loc0 -- ; if ( loc0 == 0 ) break ; } } }