Bug 182895 Support sort on Level attribute.
Currently in OLAP engine we only support sort on level key value. We should go ahead to support sort on level attribute value.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/data/impl/aggregation/sort/AggregationSortHelper.java
}
		}
		
		populateEmptySortKey( base, sks );
		
		return createNewSortKeys( base, sks );
	}
	private static List createNewSortKeys( IAggregationResultSet base, SortKey[] sks )
	{
		List newSortKeys = new ArrayList();
		int offset = 0;
		for ( int i = 0; i < sks.length; i++ )
		{
			DimLevel level = sks[i].getTargetResultSet( )
					.getLevel( sks[i].getLevelKeyIndex( ) );
			int levelKeyIndex = base.getLevelIndex( level );
			int[] aggrKeyIndex = new int[sks[i].getAggrKeys( ).length];
			for ( int j = 0; j < sks[i].getAggrKeys( ).length; j++ )
			{
				aggrKeyIndex[j] = sks[i].getAggrKeys( )[j] + offset;
			}
			offset += sks[i].getAggrKeys( ).length;
			SortKey sk = new SortKey( aggrKeyIndex,
					sks[i].getAggrSortDirection( ),
					levelKeyIndex,
					0,
					sks[i].getTargetResultSet( ), sks[i].getAxisQualifiers( ) );
			newSortKeys.add( sk );
		}
		return newSortKeys;