Bug 138828 Export data column are disordered
Steps to reproduce: 1.Add a sample data source and a data set with table "CUSTOMERS" 2.Preview in Web Viewer 3.Click "Export data", choose columns "CUSTOMERNAME","PHONE","CITY","STATE" to be exported, click "OK" Expected result: The exported columns is alphabetic order or the same order as selected columns Actual result: The exported columns is disordered. they are "STATE","CITY","CUSTOMERNAME","PHONE".
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ReportEngineService.java
option.setOutputStream( outputStream );
		option.setOutputFormat( format );
		option.setMasterPageContent( masterPage );
		if ( embeddable != null )
		{
			option.setEmbeddable( embeddable.booleanValue( ) );
		}
		if ( activeIds != null )
		{
			option.setInstanceIDs( activeIds );
		}
		IRunAndRenderTask runAndRenderTask = null;
		synchronized ( this.getClass( ) )
		{
			runAndRenderTask = engine.createRunAndRenderTask( runnable );
		}
		runAndRenderTask.setLocale( locale );
		if ( parameters != null )
		{
			runAndRenderTask.setParameterValues( parameters );
		}
		runAndRenderTask.setRenderOption( option );
		HashMap context = new HashMap( );
		
		context.put( "org.eclipse.birt.data.engine.dataset.cache.option",
				Boolean.TRUE );
		context.put( EngineConstants.APPCONTEXT_BIRT_VIEWER_HTTPSERVET_REQUEST,
				request );
		context.put( EngineConstants.APPCONTEXT_CLASSLOADER_KEY,
				ReportEngineService.class.getClassLoader( ) );