inverter.js
function reorderBorderRadius(p1, p2, p3, p4){
  if(p4)
    return [p2, p1, p4, p3].join(' ');
  if(p3)
    return [p2, p1, p2, p3].join(' ');
  if(p2)
    return [p2, p1].join(' ');
  else
    return p1;
}
function reorderBorderRadius(p1, p2, p3, p4){
  if(p4)
    return [p2, p1, p4, p3].join(' ');
  if(p3)
    return [p2, p1, p2, p3].join(' ');
  if(p2)
    return [p2, p1].join(' ');
  else
    return p1;
}
function reorderBorderRadius ( p1 , p2 , p3 , p4 ) { if ( p4 ) return [ p2 , p1 , p4 , p3 ] . join ( ' ' ) ; if ( p3 ) return [ p2 , p1 , p2 , p3 ] . join ( ' ' ) ; if ( p2 ) return [ p2 , p1 ] . join ( ' ' ) ; else return p1 ; }
Reorders border radius values for opposite direction

reorderBorderRadius(A, B, C, D) -> 'B A D C'
reorderBorderRadius(A, B, C) -> 'B A B C'
reorderBorderRadius(A, B) -> 'B A'
reorderBorderRadius(A) -> 'A'

@param {String} p1 First element
@param {String} p2 (Optional) Second element
@param {String} p3 (Optional) Third element
@param {String} p4 (Optional) Fourth element
@return {String} Result
@api private
Reorders border radius values for opposite direction