I have a custom filter called removeIndex which removes the first index of an array. I want to modify that so it first sorts the array, and then removes the first index. However, when I try to do that, my application freezes up. Here's what I have:
filters: {
removeIndex: function(value) {
sort(value); // this crashes my browser
return value.slice(1, value.length);
}
}
Why would that cause my browser to crash? Is there another way I should be doing this? I just want to sort the array before I slice it.
Update: When I do console.log(value), this is what I'm getting:

So it's not just a flat array, there's other stuff tied to it.
Here's how I am using it:
<tbody v-repeat="company in companies | filterBy searchText | orderBy 'name'">
<tr>
<td class="center aligned border" rowspan="@{{ company.applications.length }}" bgcolor="#F9FAFB"><a href="#"><strong>@{{ company.name }}</strong></a></td>
<td><a href="#">@{{ company.applications[0] }}</a></td>
</tr>
<tr v-repeat="company.applications | removeIndex">
<td><a href="#">@{{ $value }}</a></td>
</tr>
</tbody>
@ signs because I am using this inside of a Laravel app.