diff --git a/dist/pourover.js b/dist/pourover.js index 0d8ed88..4bcb8cf 100644 --- a/dist/pourover.js +++ b/dist/pourover.js @@ -90,7 +90,8 @@ var PourOver = (function(){ } while(i < length){ if(element < set[i]){ - return set.slice(0,i).concat([element]).concat(set.slice(i,length)); + set.splice(i, 0, element); + return set; } else { i++; }