Bug 132805 Set descending to outer group will affect inner group.
Description: Set descending to outer group will affect inner group. Steps to reproduce: 1. New a sample datasource and dataset from orders. 2. Drag the dataset to Layout. 3. Add a group on ordernumber, interval 10, descending. 4. Add another group on orderdate, interval day 2, ascending. 5. Preview. Expected result: Data are grouped correctly. Actual result: Inner group didn't work unless you set outer group's sort to asc.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/transform/group/GroupCalculationUtil.java
groupCount++;
			}
		}
		if ( query.getOrdering( ) != null )
		{
			sortCount = query.getOrdering( ).length;
		}
		int[] sortKeyIndexes = new int[groupCount + sortCount];
		String[] sortKeyColumns = new String[groupCount + sortCount];
		boolean[] sortAscending = new boolean[groupCount + sortCount];
		for ( int i = 0; i < groupCount; i++ )
		{
			int index = groupDefs[i].getColumnIndex( );
			if ( index >= 0 )
			{
				sortKeyIndexes[i] = groupDefs[i].getColumnIndex( );
				sortKeyColumns[i] = groupDefs[i].getColumnName( );
				sortAscending[i] = groupDefs[i].getGroupSpec( )
						.getSortDirection( ) != IQuery.GroupSpec.SORT_DESC;
			}
		}
		for ( int i = 0; i < sortCount; i++ )
		{
			int keyIndex = query.getOrdering( )[i].getIndex( );
			String keyName = query.getOrdering( )[i].getField( );
			
			
			if ( keyName != null )
				keyIndex = rsMeta.getFieldIndex( keyName );
			sortKeyIndexes[groupCount + i] = keyIndex;