You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
I have tracked down this issue to the following commit: a097aa9.
This happens because the order in which the compared values are tried to be converted to primitives has been changed by this commit. Previously valueOf() has been tried before toString(). With this commit it is the other way around. This leads to dates being compared as strings which is obviously wrong.
It's probably this valueOf() call that was making things works before. Calling valueOf() on native date or MomentJS date returns a timestamp which is comparable.
Since 1.3.7, OrderBy filter isn't working anymore with momentJS or native dates.
I've build a plunker to reproduce the issue : http://plnkr.co/edit/tzcbq7gJgOXvY5gj5QI0?p=preview
Using angular 1.3.6 fix the issue.
The text was updated successfully, but these errors were encountered: