Grouping of subentries is now complete, and SMK is checking the results. Meanwhile, I've written my first subgroup sorting template, heavily recursive, and she'll check the results of that next time she's in. It looks like I have a working approach to the subgroup sorting, although it's pretty complicated.