sorting an array of objects JS – Javascript
Hello everyone I still can't sort the array correctly. We need to sort the following array: const arr = [ {id: 3123124, parentId: 0o0000, title: 'title', type: 'block'}, {id: 3542132, parentId: 3123124, title: 'title', type: 'child'}, {id: 12345, parentId: 88888,…