Bug 182061 Data engine changes to support result set sharing
data/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/binding/GroupOnRowTest.java
/**
	 * Test another function, that row[colIndex] JS expression should be
	 * supported defineed in sort.
	 * 
	 * @throws Exception
	 */
	public void testSortOnKeyIndex( ) throws Exception
	{
		
		
		String[] bindingNameSort = new String[1];
		bindingNameSort[0] = "SORT_AMOUNT2";
		IBaseExpression[] bindingExprSort = new IBaseExpression[1];
		bindingExprSort[0] = new ScriptExpression( "dataSetRow.AMOUNT2" );
		SortDefinition[] sortDefn = new SortDefinition[]{
			new SortDefinition( )
		};
		sortDefn[0].setColumn( "SORT_AMOUNT2" );
		sortDefn[0].setSortDirection( ISortDefinition.SORT_DESC );
		String[] bindingNameRow = new String[4];
		bindingNameRow[0] = "ROW_ID";
		bindingNameRow[1] = "ROW_rowPosition";
		bindingNameRow[2] = "ROW_AMOUT1";
		bindingNameRow[3] = "ROW_AMOUT2";
		IBaseExpression[] bindingExprRow = new IBaseExpression[4];
		bindingExprRow[0] = new ScriptExpression( "dataSetRow.ID" );
		bindingExprRow[1] = new ScriptExpression( "dataSetRow._rowPosition" );
		bindingExprRow[2] = new ScriptExpression( "dataSetRow.AMOUNT1" );
		bindingExprRow[3] = new ScriptExpression( "dataSetRow.AMOUNT2" );