Sort by Hierarchy

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a list of data with a key and its parent key.
It is currently sort by key.

I need to sort by Hierarchy so that the children come after the parent.

Is there a algorithm to do this?
Would also need to determine the outline level.

Thanks,
 
Presumably the parent key defines the hierarchy, so why not sort on
parent-key then child-key ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top