Axis data output may deviate from expected order, as with this test query:
Axis data output may deviate from expected order, as with this test query:

select {[Cost Type].[current], [Cost Type].[planned]} * 
 {Tail([Time].[Year].Members,3)} ON COLUMNS,
          NON EMPTY Crossjoin({[Planner].CurrentMember.Children},
 {[Part].[All Parts].[M].Children}) ON ROWS
     from Inventory
       where ([Measures].[Total Cost]);

where the years are ordered as 2005, 2006, 2004 instead of 2004, 2005, 2006. 

The RolapResult.mergeAxes method starts iterating through the pl1 list when arrayLen == -1, then continues to use this same list in subsequent code to build a new member list for the axis.  This change resets to the start of the pl1 list so that the new member list is built from the beginning of the pl1 list.

[git-p4: depot-paths = "//open/mondrian/": change = 9622]

bmorrise/mondrian,cesarmarinhorj/mondrian,sayanh/mondrian,cocosli/mondrian,citycloud-bigdata/mondrian,dkincade/mondrian,preisanalytics/mondrian,Seiferxx/mondrian,julianhyde/mondrian,julianhyde/mondrian,lgrill-pentaho/mondrian,ivanpogodin/mondrian,syncron/mondrian,OSBI/mondrian,dkincade/mondrian,citycloud-bigdata/mondrian,AvinashPD/mondrian,stiberger/mondrian,openedbox/mondrian,dkincade/mondrian,openedbox/mondrian,OSBI/mondrian,pentaho/mondrian,truvenganong/mondrian,AvinashPD/mondrian,rfellows/mondrian,syncron/mondrian,ivanpogodin/mondrian,cesarmarinhorj/mondrian,nextelBIS/mondrian,openedbox/mondrian,bmorrise/mondrian,pentaho/mondrian,syncron/mondrian,lgrill-pentaho/mondrian,wetet2/mondrian,rfellows/mondrian,preisanalytics/mondrian,OSBI/mondrian,nextelBIS/mondrian,pentaho/mondrian,pedrofvteixeira/mondrian,mdamour1976/mondrian,cocosli/mondrian,bmorrise/mondrian,pedrofvteixeira/mondrian,cocosli/mondrian,truvenganong/mondrian,stiberger/mondrian,pedrofvteixeira/mondrian,sayanh/mondrian,wetet2/mondrian,truvenganong/mondrian,mdamour1976/mondrian,ivanpogodin/mondrian,mustangore/mondrian,wetet2/mondrian,mustangore/mondrian,sayanh/mondrian,nextelBIS/mondrian,cesarmarinhorj/mondrian,mustangore/mondrian,citycloud-bigdata/mondrian,Seiferxx/mondrian,lgrill-pentaho/mondrian,preisanalytics/mondrian,AvinashPD/mondrian,mdamour1976/mondrian,stiberger/mondrian,Seiferxx/mondrian