Huh, I didn't think this through, but what I did is select the sections in Emacs and use sort-lines (which is what we do for headers and those sorts of things too). You can pipe a selection through "sort" with vim, right?