Affected Package
The issue is caused by package @angular/common
Is this a regression?
No
Description
One of the reasons a developer uses a Map over an Object is to have Object-like features with sorted keys. When passing a Map to *ngFor with the keyvalue pipe, the map's sorted order is lost.
The bug is that the keyvalue pipe uses the defaultComparator for Maps. No sorting should be applied when keyvalue is passed a Map.