for( int j = N - 1; j > i; j--)
for( int j = activeCount - 1; j > i; j--)
	private void populateValueListAndRowIdList( Object value, int N ) throws DataException	{		assert N>=0;		for( int i = 0; i < N; i++ )		{			if( value == null )				value = nullValueReplacer;			if( valueList.get( i ) == null )			{				valueList.set( i, value);				rowIdList.set( i, new Integer( firstPassRowNumberCounter ) );				break;			}			else 			{				Object result;								if( value.equals(nullValueReplacer) )					result = this.doCompare( null, valueList.get( i ));				else if ( valueList.get( i ).equals(nullValueReplacer))					result = this.doCompare( value, null );				else					result = this.doCompare( value, valueList.get( i ) );								try				{					// filter in					if ( DataTypeUtil.toBoolean( result ).booleanValue( ) == true )					{						for( int j = N - 1; j > i; j--)						{							valueList.set( j, valueList.get( j - 1 ) );							rowIdList.set( j, rowIdList.get( j - 1 ) );						}						valueList.set( i, value );						rowIdList.set( i,								new Integer( firstPassRowNumberCounter ) );						break;					}				}				catch ( BirtException e )				{					throw DataException.wrap(e);				}			}		}	}