Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to overide default ordering. #176

Open
shrirangjoshi94 opened this issue Sep 6, 2020 · 0 comments
Open

How to overide default ordering. #176

shrirangjoshi94 opened this issue Sep 6, 2020 · 0 comments

Comments

@shrirangjoshi94
Copy link

shrirangjoshi94 commented Sep 6, 2020

Hello,
I have used this package for ordering a list.
The scenario is as mentioned below

left right
recipe 1
recipe 2
recipe 3
recipe 4

Initially, I have 4 recipes in my left list and no recipes in my right list.
left
recipe 1
recipe 2
recipe 3
recipe 4

Then I select 4 recipes from the left and put it in my right list in the order below

right
recipe 1
recipe 4
recipe 3
recipe 2

I now save it to my database.
If after saving when I want to edit it and reorder it then it takes the same order as the saved one whichever way I select it
If I select recipe 3 before 4 then also finally recipe 4 is reflected before recipe 3

My question here is how can I reset this default order and allow the order to be taken based on selection.
eg: if recipe 3 is selected before recipe 4 then it should appear above recipe 4 and not the other way around.

Thank you!! in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant