The d3.permute function from d3