Compare hash values of objects
if ( hash . get ( objects [ i ] ) <= last_element ) { j ++ ; let temp = objects [ i ] ; objects [ i ] = objects [ j ] ; objects [ j ] = temp ; } } j ++ ; let temp = objects [ r ] ; objects [ r ] = objects [ j ] ; objects [ j ] = temp ; return j ; }