Bug 123726 "Top n", "Bottom n" in highlight dialog doesn't work.
Description: "Top n", "Bottom n" in highlight dialog doesn't work. Steps to reproduce: 1. Add a highlight for a table. 2. Set highlight rule: "account_id", "top n", "3", let its font color red. 3. Preview the report, it doesn't work. Attached is design file.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/PreparedQuery.java
sortIndex = -1; 
							sortKey = String.valueOf("_{$TEMP_SORT_"+i+"$}_");
						}
						
						IQuery.SortSpec dest = new IQuery.SortSpec( sortIndex,
								sortKey,
								src.getSortDirection( ) == ISortDefinition.SORT_ASC );
						sortSpecs[i] = dest;
					}
					odiQuery.setOrdering( Arrays.asList( sortSpecs));
				}
				
				List computedColumns = null;
			    
				computedColumns = this.dataSet.getComputedColumns( );
				if ( computedColumns != null )
				{
					computedColumns.addAll( temporaryComputedColumns );
				}
				if ( (computedColumns != null && computedColumns.size() > 0)|| temporaryComputedColumns.size( ) > 0 )
				{
					IResultObjectEvent objectEvent = new ComputedColumnHelper( this.dataSet,
							(computedColumns == null&&computedColumns.size()>0) ? temporaryComputedColumns : computedColumns );
					odiQuery.addOnFetchEvent( objectEvent );
				}
		    	if ( dataSet.getEventHandler() != null )
		    	{
		    		OnFetchScriptHelper event = new OnFetchScriptHelper( dataSet ); 
		    		odiQuery.addOnFetchEvent( event );
			    }