select.js
function permuteOrder(order) {
  var norder = order.slice()
  norder.splice(order.indexOf(0), 1)
  norder.unshift(0)
  return norder
}
function permuteOrder(order) {
  var norder = order.slice()
  norder.splice(order.indexOf(0), 1)
  norder.unshift(0)
  return norder
}
function permuteOrder ( order ) { var norder = order . slice ( ) norder . splice ( order . indexOf ( 0 ) , 1 ) norder . unshift ( 0 ) return norder }
Create new order where index 0 is slowest index
Create new order where index 0 is slowest index