You are doing it wrong. Object properties are unsorted by definition. See https://stackoverflow.com/questions/5525795/does-javascript-guarantee-object-property-order
Your solution can break easily and I would be surprised if it worked it all browsersin the most difficult way possible.
What you actually want to do is to define the order of properties, e.g:
const propertyOrder = ['name', 'phone', 'email'];
or
const propertyOrder = Object.keys(object[0]).sort(...);
and render the properties bypass that order to your components with the object instead of using a random ordering of Object.keys
.