Hi,
I wonder if there is a script for sorting an array with parent and a child value to look like a tree-structure? For instant the value could look like this:
Parent Child
0001 0001
0002 0001
0003 0001
0004 0002
0005 0003
The problem is that I would like to sort this array to an array that I could print:
P - C - C - C
- C - C - C
- - - C - C
I think that a script like this have already been made therefore I ask if someone could pass me the proper link!
Tia Dave