mirror of
https://github.com/angular/angular.git
synced 2026-11-23 07:05:14 -05:00
`KeyValuePipe` sorted its output in place, so when `compareFn` switched from a function to `null` without the input changing, the original order was lost and the previously sorted array was returned. When only `compareFn` changes, rebuild the entries from the input in natural order before applying the new comparator. Tested with new specs for objects and Maps that fail without the fix. Fixes #71893