I have an array of objects like this
var arr = [{
"id": "1",
"Title": "Object1",
"SectionId": "1.2.1"
}, {
"id": "2",
"Title": "Object2",
"SectionId": "1.1.2"
}, {
"id": "3",
"Title": "Object3",
"SectionId": "1.0.1"
}, {
"id": "4",
"Title": "Object4",
"SectionId": "1"
}];
sectionId
has number separated dots. How do I sort the array based on the sectionId
property in ascending or descending order?