If a [ indices [ l ] ] is less than a [ indices [ j ] ] , add indice [ l ] to temp
if ( a [ indices [ l ] ] < a [ indices [ j ] ] ) : NEW_LINE INDENT temp_ind [ i ] = indices [ l ] NEW_LINE i += 1 NEW_LINE l += 1 NEW_LINE DEDENT