title: Creating AngularJS custom filter that actually Sort
body: <p>I know that in angularJS there is some built in filter: for example  <code>&lt;li ng-repeat="student in students | orderBy:'name'"&gt;</code></p>
  
  <p>But I don't want to use it, I want to build a custom filter like above one.</p>
  
  <p>and I tried below one but I am not getting how to do it.</p>
  
  <p>Do you have any example like this one?</p>
  
  <pre><code>var app = angular.module("app", []);
  
  
  app.filter('filterByName', function () {
    return function (item) {
        // do something there
    };
  });
  </code></pre>
  
  <p>Anyone know how to do it or any example like this?</p>