Sortable icon indicating copy to clipboard operation
Sortable copied to clipboard

Love this sort js but...

Open Magiccamera opened this issue 9 years ago • 3 comments

Checked against another browser and it does not show same sorting position. Is there a way to save the sorting state to a db?

Magiccamera avatar May 21 '17 23:05 Magiccamera

Can you provide more details?

I've saved list order to a DB using the "OnEnd" event. You should also look at sortablejs's store option. I believe you could also use the store's setter to save the sort state.

aintJoshinya avatar May 22 '17 02:05 aintJoshinya

I am using the store option from the example you linked me. Using it in Rails, so looks like I need to do a couple of other steps in order to get the sorted list items to display correctly so that 2 people are looking at the same thing.

Magiccamera avatar May 22 '17 06:05 Magiccamera

How did you save it to db? Just indexies? Did you need to assign this indexies to items from db on load? And what field to use?

airstep avatar Dec 18 '17 12:12 airstep