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
Moving last item up reverses the order of whole scope when 3 last items have adjacent indexes #103
Comments
If it's any help you can use this fork: https://github.com/savef/ranked-model (or preferably fork it yourself so it's stable). It fixes some other ranking bugs (see here) but I just tried it with your scenario and it handles it OK. |
I just had a sudden reversal of all list items when trying to move the bottom item up. Here's the SQL log:
I found it strange that the ordering is It looks like this is a rebalancing. Is there a way to configure the default order direction for the position column? |
@savef, did you attempt creating some PR's for your fixes? |
Looks like #110 fixes this issue. @jmchambers, @mpokrywka and @mixonic, would we be able to work together to get this merged with this test: 37e19f8? |
I can't remember but it doesn't look like it. I can't remember why not but it probably wasn't a good reason! |
Haha! That's all good. Hopefully we can get this one accepted soon in any case :) |
If order index for the last items are adjacent (e.g. last => 15, last-1 => 14, last-2 => 13), attempting to move the last item up causes the whole scope to be reordred in reverse. For instance:
gives
The text was updated successfully, but these errors were encountered: