Swap the adjacent row
while ( First > i ) : NEW_LINE INDENT cntZero [ First ] = cntZero [ First - 1 ] NEW_LINE cntZero [ First - 1 ] = cntZero [ First ] NEW_LINE First -= 1 NEW_LINE cntSwaps += 1 NEW_LINE DEDENT return cntSwaps NEW_LINE