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
sortKey.setKeyIndex( lhmLookup.findIndex( sExpression,
								lhmLookup.getOrthogonalAggregationExpression( sd ) ) );
						alKeys.add( sortKey );
					}
				}
			}
		}
		return (GroupKey[]) alKeys.toArray( new GroupKey[alKeys.size( )] );
	}
	/**
	 * Uses IDataRowExpressionEvaluator to create a ResultSetWrapper
	 * 
	 * @return A wrapper of the chart resultset
	 * 
	 * @throws ChartException
	 */
	protected ResultSetWrapper mapToChartResultSet(
			IDataRowExpressionEvaluator idre, Chart cm ) throws ChartException
	{
		
		GroupingLookupHelper lhmLookup = new GroupingLookupHelper( cm, iae );
		Collection co = lhmLookup.getExpressions( );
		
		final int iColumnCount = co.size( );
		final List liResultSet = new ArrayList( );
		Object[] oaTuple;
		int iColumnIndex;
		Iterator it;
		if ( idre.first( ) )
		{