Possible implementation:
If a collection has tree structure enabled, it gets a (hidden) "parent" and "next" field. Then, in the listview the items are displayed in the corresponding order and are indented.