title: "sort not a function" error in angularjs only in google chrome
body: <p>I ran into this problem and am unable to figure out why and couldn't find any explanation on google. I have a $http.get method to retrieve some data from a url, on success i am sorting the response. But when I run the page on google chrome, I get the error "TypeError: response.sort is not a function"</p>
  
  <pre><code>var orderOfGroups = ["alpha", "beta", "gamma", "delta"];
  
  $http.get(url)
  .success( function (response, status, headers, config) {
      response.sort( function(a, b) {
          var aname = orderOfGroups.indexOf(a.team);
          var bname = orderOfGroups.indexOf(b.team);
  
          return bname-aname;
      });
  });
  </code></pre>
  
  <p>I am getting the error at "response.sort" line. Also this is happening only in google chrome, I tested it in firefox and IE10, and its working fine on these browsers.
  The json data I am receiving (response) has the following format</p>
  
  <pre><code>[
      {
          team: "gamma",
          value: "p"
      },
      {
          team: "alpha",
          value: "q"
      },
      ......
  ]
  </code></pre>
  
  <p>Could you please tell me how I can resolve this?</p>