Report question

Question: Sorting array depending on parent; a tree in a one-dimensional array