title: How to filter JSON-Data with AngularJs?
body: <p>I have an array (_users) that contains JSON objects.</p>
  
  <pre><code>{ 
    "User":
    {
      "userid":"19571",
      "status":"7",
      "active":"1",
      "lastlogin":"1339759025307",
      "Stats":
       [
         {
           "active":"1",
           "catid":"10918",
           "typeid":"71",
           "Credits":
           [
             {
               "content":"917,65",
               "active":"1",
               "type":"C7"
             },               
             {
               "content":"125,65",
               "active":"1",
               "type":"B2"
             }
           ]
         }
       ]
    }
  }
  </code></pre>
  
  <p>1- How can I filter only users with "active":"1" not "0" </p>
  
  <p>I have tried something like this:</p>
  
  <pre><code>&lt;div ng-repeat="user in _users | filter:active | orderBy:user.userid"&gt;
      {{user.userid}}
  &lt;/div&gt;
  </code></pre>
  
  <p>but not working correctly for me.</p>
  
  <p>Thank you!</p>