score:1

without seeing your code, i can only offer a very vague direction:

you may need a function that gets called, each time the viewer change sorting option. inside the function, you will need to specify different accessor:

var update = function(_value){
  data.sort(function(a, b) { return b._value - a._value; })

  // add transition with the newly sorted data
}

More Query from same tag