Spent most of the day working on a gnarly recursive function that takes a flat array of items with parent IDs and converts it to a multidimensional array to display as a hierarchical tree.