I have an array of object in response as a json like:
const arr = [{
Mandatory: false,
Question: 65,
QuestionType: "E",
YesNo: "n",
type: "QuestionOutput"
},
{
Mandatory: false,
Question: 64,
QuestionType: "H",
YesNo: "n",
type: "QuestionOutput"
},
{
Mandatory: false,
Question: 85,
QuestionType: "S",
YesNo: "n",
type: "QuestionOutput"
},
{
Mandatory: false,
Question: 61,
QuestionType: "F",
YesNo: "",
type: "QuestionOutput"
},
{
Mandatory: true,
Question: 60,
QuestionType: "F",
YesNo: "",
type: "QuestionOutput"
}
];
I want to sort this array in ascending order based on the property Question and put the sorted object array into another object array.