I have an array with items, one of the fields is 'status' which value can be 'locked' or 'unlocked'.
When I do an *ngFor,
<li *ngFor="let item of items">
{{item.name}}
</li>
I want items with status 'locked' to be displayed first.
How can I achieve this? Thanks.