Looking for guidance on how to update the order of items after a drag and drop functionality in Vue3 using vue draggable. The library used can be found at https://github.com/SortableJS/vue.draggable.next.
"items": [
{
"name": "Test - 1",
"order": 0
},
{
"name": "Test - 2",
"order": 1
},
{
"name": "Test - 3",
"order": 2
}
]
}
If I were to move Test - 2 to the top, the updated result should look like this:
"items": [
{
"name": "Test - 2",
"order": 0
},
{
"name": "Test - 1",
"order": 1
},
{
"name": "Test - 3",
"order": 2
}
]
}