Let's just say we have 2 JavaScript Objects likes this:
object1 = {
test: {},
test2: {},
users: {},
colors: {},
dates:{}
}
object2 = {
test2: {},
dates:{},
test: {},
colors: {},
users: {}
}
How can you take the order of object1 to object2 ?