Turn graph export back on
Express dependencies better
Sort all revisions

With sort_buf, the underlying revisions array isn't sorted, so we
have to do the whole lot, not just the first nbranch.