Bug 210047 The grand total key should not appear in the new sort key editor
Build ID: I20071101-2000 Steps To Reproduce: 1.New a cube and add a x-tab to the layout 2.add data to the x-tab and show the grand total 3.open the property editor's sorting tab, click "Add" to add a new sort key. Expect: the grand total key should not appear in the key list
data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/CubeQueryUtil.java
if( candidateEdge == -1  )
				candidateEdge = getAxisQualifierEdgeType( dimLevel,
						cubeDefn );
			else
			{
				if( candidateEdge != getAxisQualifierEdgeType( dimLevel,
						cubeDefn ))
					return false;
			}
		}
		return true;
	}
	/**
	 * 
	 * @param query
	 * @param target
	 * @return
	 */
	private boolean isLeafLevel( ICubeQueryDefinition query, DimLevel target )
	{
		return isLeafLevel( query.getEdge( ICubeQueryDefinition.COLUMN_EDGE ),
				target )
				|| isLeafLevel( query.getEdge( ICubeQueryDefinition.ROW_EDGE ),
						target );
	}
	/**
	 * 
	 * @param edge
	 * @param target
	 * @return