title: Why do I keep getting a TypeError: args.sort is not a function?
body: <pre><code>function getIndexToIns(arr, num) {
  
    var args = Array.prototype.join.call(arguments);
  
    function compareNumbers(a, b) {
      return a - b;
    }
    args.sort(compareNumbers);
  
    return args;
  
  }
  
  getIndexToIns([40, 60], 50);
  </code></pre>