How to show parent and child rows as a tree

Two departments hold four teams, and each team holds its people, twelve rows in all. Click a row's arrow to open or close that branch; the rows beneath it hide or reappear with it. Sort by revenue and only the people inside a team change places, because a sort orders siblings within their own parent rather than the whole flattened list. Read the full how-to on latticegrid.dev.