vue-slicksort icon indicating copy to clipboard operation
vue-slicksort copied to clipboard

Sort an object based on specific key

Open TranceGeniK opened this issue 5 years ago • 1 comments

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 ?

TranceGeniK avatar Apr 07 '19 08:04 TranceGeniK

i need too

matamune94 avatar May 28 '19 21:05 matamune94