preserve order of keys in react component