Sort defaults/commands/features in provider doc hooks

A minor adjustment to a minor component of the type reference, plus a comment explaining a dead variable I found.