VadimDez / ngx-order-pipe

▼ Angular 5+ orderBy pipe
https://vadimdez.github.io/ngx-order-pipe/
MIT License
243 stars 57 forks source link

Fix when a or b might be null (e.g. Async items) #28

Closed jussivesa closed 6 years ago

jussivesa commented 6 years ago

Fixes Cannot read property foo of null error. For example, below code might cause error:

`<ion-item-sliding *ngFor="let item of items | async | orderBy: 'isDone' : false; let i = index;">

{{item.text}}

`

With fix proposed in pull request, no errors occur during application run.