Regenerate diagram.ppmd to be sorted