When items were sorted by "type" on the TOC page, within each type they were in random order (or rather, apparently so; they were actually in db order). I've now added a second <xsl:sort>
element in these cases, to sort the components of each type in title order.