mikolalysenko/ndarray-sort — pull request #2 by chrisdickinson (2014-12-25 07:57:42+00:00)
Title: fix repeated tagged-to-i deopt

the comp_pivot variables were occasionally being used before being initialized.
the tagged-to-i operation would bail because of NaN being introduced when they
were used.

To test this, I modified the "simple.js" example to work as follows:

```javascript
var ndarray = require("ndarray")
var ndsort = require("../sort.js")
var unpack = require("ndarray-unpack")

var N = 100000;
var NX = 3;
var NY = 100;
var arrays = [];
//Create an array
for (var z = 0; z < N; ++z) {
var x = ndarray(new Float32Array(NY * NX), [NY, NX])

for(var i=0; i