Bug 128359 The logic is not correctly when a filter is added to the table on the layout
Description: The logic is not correctly when a filter is added to the table on the layout Steps to reproduce: Let me give an example. 1. Creat a report, new a datasource and a dataset 2. We consume that the dataset has 10 records(DataResult_A) . We set a filter(Filter_A) in the dataset, and then the 6 records of the dataset(DataResult_B) are gained. 3. Drag the dataset to the layout, and set another filter(Filter_B) on the table. Actual result: The result of Filter_B is based on DataResult_A. Expect result: The result of Filter_B should be based on DataResult_B.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/PreparedQuery.java
temporaryComputedColumns.add(new ComputedColumn( "_{$TEMP_GROUP_"+i+"$}_", src.getKeyExpression(), getTempComputedColumnType( groupSpecs[i].getInterval() )));
						}
					}
					odiQuery.setGrouping( Arrays.asList( groupSpecs));
				}		
				
				List sorts = queryDefn.getSorts();
				if ( sorts != null && !sorts.isEmpty( ) )
				{
					IQuery.SortSpec[] sortSpecs = new IQuery.SortSpec[ sorts.size() ];
					Iterator it = sorts.iterator();
					for ( int i = 0; it.hasNext(); i++ )
					{
						ISortDefinition src = (ISortDefinition) it.next();
						int sortIndex = -1;
						String sortKey = src.getColumn();
						if ( sortKey == null || sortKey.length() == 0 )
						{ 
							
							ColumnInfo columnInfo = getColInfoFromJSExpr( cx,
									src.getExpression( ).getText() );
														
							sortIndex = columnInfo.getColumnIndex(); 
							sortKey = columnInfo.getColumnName( );
						}
						if ( sortKey == null && sortIndex < 0 )
						{
							
							
							temporaryComputedColumns.add(new ComputedColumn( "_{$TEMP_SORT_"+i+"$}_", src.getExpression().getText(), DataType.ANY_TYPE));