Bug 181706 Sorting Data by X values doesn't work without grouping
Using the 2.2M5 designer , I simply want to sort the data of the X Series in a Line Chart. I go into the Sort and Group pop up in the chart wizard and select ascending, but it doesn't affect the result. (style ordered same as the result set) If i define a dummy grouping (no interval) it is then working.
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/internal/datafeed/DataProcessor.java
final ResultSetWrapper rsw = new ResultSetWrapper( lhmLookup,
				liResultSet,
				groupKeys );
		SeriesDefinition sdBase = null;
		boolean bBaseGrouping = false;
		
		
		AggregationExpressionHelper aggHelper = new AggregationExpressionHelper( );
		if ( cm instanceof ChartWithAxes )
		{
			ChartWithAxes cwa = (ChartWithAxes) cm;
			Axis[] axaBase = cwa.getBaseAxes( );
			Axis[] axaOrthogonal = null;
			
			for ( int j = 0; j < axaBase.length; j++ )
			{
				sdBase = (SeriesDefinition) axaBase[j].getSeriesDefinitions( )
						.get( 0 );
				axaOrthogonal = cwa.getOrthogonalAxes( axaBase[j], true );
				bBaseGrouping = rsw.getRowCount( ) > 0
						&& sdBase.getGrouping( ) != null
						&& sdBase.getGrouping( ).isEnabled( );
				
				for ( int i = 0; i < axaOrthogonal.length; i++ )
				{
					
					aggHelper.addSeriesDefinitions( axaOrthogonal[i].getSeriesDefinitions( ),
							lhmLookup );
				}
			}