I am trying to perform some custom sorting on a TreeGrid (See attachment for a screenshot of grid sample). What I am trying to accomplish is when sorting to only sort the data under a certain level of the tree.
In the example in the screenshot, only the items who are children of the INVESTMENTS & CASH nodes should be sorted. The Account, INVESTMENTS, & CASH nodes should always remain exactly where they are.
It seems that the way the sorting works is that there is a function called
inside the isc.Array class which is what actually does the sorting. This in turn creates a function variable called
which gets passed to the
function to do the sorting. These are all done at the low-level of the array & I do not want to attach this functionality to all arrays - I only want it in my subclasses of TreeGrids.
Anyone have any ideas here?
In the example in the screenshot, only the items who are children of the INVESTMENTS & CASH nodes should be sorted. The Account, INVESTMENTS, & CASH nodes should always remain exactly where they are.
It seems that the way the sorting works is that there is a function called
Code:
sortByProperties
Code:
compareNormalized
Code:
Array.sort
Anyone have any ideas here?
Comment