A package for sort algorithms - v3
I would remove Pub.swap and copy its code where you need it.

That's because function calls are expensive, so better avoid calling a function at each iteration if possible.

And try to cache the expressions in loop's condition. For example, 

var lengthMinusIndexOuter = length - index_outer;
for (index_inner = 0; index_inner &lt; lengthMinusIndexOuter; index_inner++) {


instead of 

for (index_inner = 0; index_inner &lt; length - index_outer; index_inner++)