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/BirtViewerReportService.java
String reportDesignName = design.getFileName( );
		HttpServletRequest request = (HttpServletRequest) options
				.getOption( InputOptions.OPT_REQUEST );
		Locale locale = (Locale) options.getOption( InputOptions.OPT_LOCALE );
		Boolean isMasterPageContent = (Boolean) options
				.getOption( InputOptions.OPT_IS_MASTER_PAGE_CONTENT );
		Boolean svgFlag = (Boolean) options
				.getOption( InputOptions.OPT_IS_MASTER_PAGE_CONTENT );
		String format = (String) options
				.getOption( InputOptions.OPT_RENDER_FORMAT );
		try
		{
			IReportRunnable runnable = ReportEngineService.getInstance( )
					.openReportDesign( reportDesignName );
			Map parsedParams = getParsedParameters( design, options, parameters );
			ReportEngineService.getInstance( )
					.runAndRenderReport( request, runnable, out, format,
							locale, parsedParams,
							isMasterPageContent.booleanValue( ),
							svgFlag.booleanValue( ) );
		}
		catch ( RemoteException e )
		{
			throw new ReportServiceException( e.getLocalizedMessage( ) );
		}
		catch ( EngineException e )
		{
			throw new ReportServiceException( e.getLocalizedMessage( ) );
		}