lib/sort.js
function setBefore (pipes, ai, bi) {
  // console.log('  move %s => %s', ai, bi);
  var ap = pipes[ai];
  pipes.splice(ai, 1);
  pipes.splice(bi, 0, ap);
}
function setBefore (pipes, ai, bi) {
  // console.log('  move %s => %s', ai, bi);
  var ap = pipes[ai];
  pipes.splice(ai, 1);
  pipes.splice(bi, 0, ap);
}
function setBefore ( pipes , ai , bi ) { // console.log('  move %s => %s', ai, bi); var ap = pipes [ ai ] ; pipes . splice ( ai , 1 ) ; pipes . splice ( bi , 0 , ap ) ; }
set a before b
set a before b