I am working on javascript object. And I want to pass data to next array in a specific sequence. like I get data like this
var obj = [{
0: "Owner Name"
1: "Mailing Address"
2: "Situs Address"
3: "APN"
}]
And want this sequence to be like this
var obj = [{
3: "APN"
0: "Owner Name"
2: "Situs Address"
1: "Mailing Address"
}];
Is it possible to do that, on bases of data? As I don't know from database sequence maybe change. edit: For those who are saying I should use array. I am getting data on basis of this object like,
var data[{
0:"CHANCE WILLIAM C & KATHRYN L"
1:"P O BOX 7642 CHICO CA 95927"
2:"LOT 4 PM 150-99/100"
3:"040-310-086-000" }]