packages/solver/lib/simplifyExpression/functionsSearch/nthRoot.js
function sortNodes(a, b) {
  if (Node.Type.isConstant(a) && Node.Type.isConstant(b)) {
    return parseFloat(a.value) - parseFloat(b.value);
  }
  else if (Node.Type.isConstant(a)) {
    return -1;
  }
  else if (Node.Type.isConstant(b)) {
    return 1;
  }
  return 0;
}
function sortNodes(a, b) {
  if (Node.Type.isConstant(a) && Node.Type.isConstant(b)) {
    return parseFloat(a.value) - parseFloat(b.value);
  }
  else if (Node.Type.isConstant(a)) {
    return -1;
  }
  else if (Node.Type.isConstant(b)) {
    return 1;
  }
  return 0;
}
function sortNodes ( a , b ) { if ( Node . Type . isConstant ( a ) && Node . Type . isConstant ( b ) ) { return parseFloat ( a . value ) - parseFloat ( b . value ) ; } else if ( Node . Type . isConstant ( a ) ) { return - 1 ; } else if ( Node . Type . isConstant ( b ) ) { return 1 ; } return 0 ; }
Sorts nodes, ordering constants nodes from smallest to largest and symbol nodes after
Sorts nodes ordering constants nodes from smallest to largest and symbol nodes after