Suppose I have the following array:
var sample: [{
pin_code: "110015",
city: "New Delhi",
address: "xyz",
}]
I want the output as:
var sample: [{
address: "xyz",
city: "New Delhi",
pin_code: "110015",
}] // arranging the keys alphabetically