This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
OrderBy filter throwing an exception when property value is null #10385
Closed
Description
When some properties used as orderBy expression are null, a type exception is thrown. It seems to affect 1.3.6 but not 1.3.5 version.
This plunker is the same one from orderBy documentation, except the null values for age property:
http://plnkr.co/k140lCbBrfzxLZhhky9d
TypeError: Cannot read property 'valueOf' of null
at compare (http://ajax.googleapis.com/ajax/libs/angularjs/1.3.6/angular.js:17584:24)