I have parent object in which data appears as following: name is first, gender is second and address is third
[{name: "alpesh solanki", gender: "male", address: "makarpura GIDC, GIDC Makarpura"},
{name: "alpes", gender: "female", address: "222makarpura GIDC, GIDC Makarpura"}]
I want to push another object in the above array but incoming data is in juggled way, for example
{address: "makarpura GIDC, GIDC Makarpura", gender: "male", name: "alpesh solanki"}
In the sense, address is first, gender is second and name is third
But I want to arrange it according to parent object.