I&#39;m using jpivot and have the following problem.  When I arrange the elements of a dimension/level to be in a certain order, all is fine, but if I expand any members, then a Hierarchize function is wrapped around the selected items + member&#39;s children and that ALWAYS reorders the list - moving calculated members to the end, and ordering members at each level by ordinal/member name.<br>
<br>Is there any way to keep the order of the elements when performing a hierarchize so that the children of each member are placed under that member as expected, but the order of the members in each level is kept as the order in the query?<br>
<br>Also, I ran into a bizarre bug in using jpivot.  2 Query objects with identical MDX queries (from toString)  result in different results from mondrian.  This only occurs when using roles. I found that if I reset the query using the MDX string it contains (as if set via GUI), then all works find, otherwise is seems as though the All members in some hierarchies are not role filtered, and are plain RollupMember-s instead of LimitedRollupMember-es. (I exported the query objects to xml).   Does Mondrian refilter Query objects with respect to roles, or does it somehow assume that they are correctly filled?   If anyone is looking at jPivot, the problem seems to lie in the MondrianQueryAdapter&#39;s onExecute function.<br>
<br>this seems to be the only place that any change is made to the Query object:<br>             141: monQuery.getAxes()[iASwap(i)].setSet((Exp) quaxes[i].genExp(doHierarchize));<br><br>but I have not a clue what it&#39;s doing here.... any ideas what&#39;s going on? If I take the mdx output after onExecute and reinitialize the query object with it, then all is fine. Internally something is wrong.<br>
<br>Thanks<br><br>