When using the Angular keyvalue pipe to iterate over an object\'s properties as follows:
You can keep the original order by simply setting the keyvalue pipe to an empty object {}
*ngFor="let property of collection | keyvalue: {}"