title: angular orderBy multiple fields has syntax errors
body: <p>I am trying to use angular <code>orderBy</code> to order multiple fields, but i get syntax error as:</p>
  
  <blockquote>
    <p>Syntax error, unrecognized expression: div[ng-repeat='r in
    vm.GetRequests() | filter: vm.SearchText |
    orderBy:['LastName','FirstName']']</p>
  </blockquote>
  
  <p>It seems there appears additional sign <code>']'</code>, but i do not have it in html</p>
  
  <p>The html looks like:</p>
  
  <pre><code>&lt;div ng-repeat="r in vm.GetRequests() | filter: vm.SearchText |orderBy:'RequestedOn'| orderBy:['LastName','FirstName']"&gt;
  {{r.LastName}} : {{r.FirstName}}
  &lt;/div&gt;
  </code></pre>
  
  <p>the function <code>GetRequests()</code> returns a array of object as following:</p>
  
  <pre><code>[{FirstName:"Test1", LastName:"First"},{FirstName:"Test2",LastName:"Second"},{FirstName:"Test3",LastName:"Third"}]
  </code></pre>
  
  <p>Can anyone help me for the problem?</p>
  
  <p>Changing HTM -  remove orderBy: 'RequestedOn'</p>
  
  <pre><code>&lt;div ng-repeat="r in vm.GetRequests() | filter: vm.SearchText | orderBy:['LastName','FirstName']"&gt;
  {{r.LastName}} : {{r.FirstName}}
  &lt;/div&gt;
  </code></pre>
  
  <p>but i still get syntax error:</p>
  
  <pre><code>Uncaught Error: Syntax error, unrecognized expression: div[ng-repeat='r in vm.GetRequests() | filter: vm.SearchText | orderBy:['LastName','FirstName']'] 
  </code></pre>
  
  <p><strong>UPDATE</strong></p>
  
  <p>The syntax seems comes from a browserlink, because the order works goed when i get the error.
  And recommend to put all order property in a array</p>
  
  <p>Thanks a lot for the inputs all of you, especially thanks for RishiPrakash :)</p>