title: Using orderBy on ng-repeat with a multidimensional array
body: <p>I have a dynamic data model coming in via a websocket, which looks like this:</p>
  
  <pre><code>var results = [
      [
          {name:'A'},
          {price: 0.00}
      ],
      [
          {name:'C'},
          {price: 0.00}
      ],
  ]
  </code></pre>
  
  <p>I'm using my ng-repeat as follows:</p>
  
  <pre><code>ng-repeat="result in results"
  </code></pre>
  
  <p>Whenever I need to access one of the arrays within the result array I do:</p>
  
  <pre><code>result[0].name
  </code></pre>
  
  <p>The issue I'm having is that the orderBy filter on ngRepeat doesn't seem to allow me to do this:</p>
  
  <pre><code>ng-repeat="result in results | orderBy: result[0].name
  </code></pre>
  
  <p>Perhaps it's a basic misunderstanding of how Angular works, but I fail to understand why this wouldn't work. Is it incorrect syntax, or is it due to my data model being dynamic? Should I be setting up a $scope.$apply somewhere? </p>
  
  <p>I've tried with quotes, and I've tried setting up a predicate in the function that parses the data initially, setting predicate to each instance of the result.name as it comes through, but this also doesn't work.</p>
  
  <p>Any help is very much appreciated.</p>