toSortedList

Returns the contents of this IdentitySet as a sorted List according to order the nodes were inserted to. This is particularly useful, if you need to look up values in the list according to their "closeness" to the root AST node.