It seems that you may be encountering an issue with filtering before determining the items to iterate through.
<li my-dir ng-repeat="result in SOME.resultset | filter:query | orderBy:orderProp">
<h1>{{ result.title}}</h1>
</li>
In addition, it is important to bind query and title to an input element. Here is a suggested format:
Search: <input ng-model="query">
Sort by:
<select ng-model="orderProp">
<option value="title">Title</option>
<option value="artist">Artist</option>
</select>
To determine the length, use the following code snippet:
Result Length: {{(resultset|filter:query).length}}