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
{
					groupDefn = (IGroupDefinition) groups.get( i - 1 );
					
					
					
					
				}
				prepareGroup( groupDefn, i, cx );
			}			
			
		}
		finally
		{
		    Context.exit();
		}
	} 
	/**
	 * Return the QueryResults. But the execution of query would be deferred
	 * 
	 * @param outerResults
	 *            If query is nested within another query, this is the outer
	 *            query's query result handle.
	 * @param scope
	 *            The ElementState object for the report item using the query;
	 *            this acts as the JS scope for evaluating script expressions.
	 */
	protected QueryResults doPrepare( IQueryResults outerResults, Scriptable scope ) throws DataException
	{
		if ( this.queryDefn == null )
		{