// const first = data.groups_with_selected[7];
// const second = data.groups_with_selected[20];
// data.groups_with_selected.splice(2, 0, first, second);
// data.groups_with_selected.splice(9, 1)
// data.groups_with_selected.splice(21, 1)
However, one issue with the code above is that although the updated sorted console value is displayed in the console, the filters are not being updated accordingly.