Compare hash values of objects
if ( hash [ objects [ i ] ] <= last_element ) : NEW_LINE INDENT j += 1 NEW_LINE ( objects [ i ] , objects [ j ] ) = ( objects [ j ] , objects [ i ] ) NEW_LINE DEDENT j += 1 NEW_LINE ( objects [ j ] , objects [ r ] ) = ( objects [ r ] , objects [ j ] ) NEW_LINE return j NEW_LINE