title: $this->Js->object() autosorts its content according to value
body: <p>I was surprised, if I noticed it right, that $this->Js->object() autosorts the array i have given into it. Im coding using CakePHP 2.0 Here's what i got:</p>
  
  <p>In my controller:</p>
  
  <pre><code>$arrayOfPlotPoints = array();
  //....
      foreach($allFilenames as $key =&gt; $value){
          $arrayOfPlotPoints[$key]['latitude'] = $value['TransactionDetail']['latitude'];
          $arrayOfPlotPoints[$key]['longitude'] = $value['TransactionDetail']['longtitude'];
          $arrayOfPlotPoints[$key]['signal_level'] = $value['TransactionDetail']['signal_level'];
          $arrayOfPlotPoints[$key]['snr_level'] = $value['TransactionDetail']['snr_level'];
          $color = $this-&gt;ColorSchema-&gt;find('first',array('fields'=&gt;array('ColorSchema.color'),'conditions' =&gt;array('category' =&gt; $category, 'upper_bound &gt;=' =&gt; $value['TransactionDetail']['snr_level'], 'lower_bound &lt;='=&gt; $value['TransactionDetail']['snr_level'])));
          $arrayOfPlotPoints[$key]['color'] = $color['ColorSchema']['color'];
          }
  
  //..
  </code></pre>
  
  <p>In my View file:</p>
  
  <pre><code>    var test = &lt;?php echo $this-&gt;Js-&gt;object($arrayOfPlotPoints); ?&gt;;
  
  
      for (var key in test) {
             var obj = test[key];
             for (var prop in obj) {
                  color.push(obj['color']);
                  latitude.push(obj['latitude']);
                  longitude.push(obj['longitude']);
                 }
  
      }
  </code></pre>
  
  <p>I debugged first the value of $arrayOfPlotPoints and copied the values as it is. And I tried alerting the values that are being fetched in the for loop of my javascript. Their occurence are not alike with what i have debugged previously in my controller. It is as if it has been sorted according to value. Does this mean that JS helper autosorts its content? If that is the case, can I disable the autosort?</p>