Question: This is a Matlab question. 

I have an array of numbers. Some of them correspond to actual signal, the others correspond to noise. I know that

* The numbers corresponding to an actual signal are all negative.
* The magnitude of the noise are all much smaller than that of any signal value.

How can I sort my array so that

* The values that corresponds to actual signals all come *before* the noise values.
* The order of the values that corresponds to actual signals are determined by their original ordering in the given array.

For example 

```
input = [-0.0002, -0.00058, -0.28, -0.0008, -0.25,-0.0006,-0.00004,-0.26]
output = [-0.28, -0.25, -0.26, -0.0002, -0.00058,-0.0008, -0.0006,-0.00004]

```

Answer: 
IE is famous for caching. Make sure you are not getting a cached response. You can either set the `cache` property value to `false` or add a unique timestamp to the url so that it will not be a cached response. You may use the [`$.now()`](http://api.jquery.com/jQuery.now/) method to get a unique timestamp.

**Setting the cache property**

```
$.ajax(url, {
    dataType: 'json',
    cache : false,
    //Other things ...
}

```

**Adding a unique timestamp to URL**

```
var url="somePage.php?"+$.now();
//Use this url now for making the ajax call

```

The `$.now()` method is a shorthand for the number returned by the expression `(new Date).getTime()`
If you are running local, try switching crossDomain to false. I spent quite a bit of time stuck on that. Chrome handled the crossDomain, but in IE if you are not using crossDomain and you have it set to true it will silently fail.