vue-slicksort
vue-slicksort copied to clipboard
Sort an object based on specific key
Currently the value has to be set to an array, but would it be possible to sort an object ? Given the following data structure :
{
"menu": {
"entry_a": {
"order": 0
},
"entry_b": {
"order": 1
},
"entry_c": {
"order": 2
}
}
}
Would it be possible to update the sortable list based on the "order" key ?
i need too