Overview:
Deleted pages are interfering with page reordering, breaking both drag-and-drop and the keyboard shortcuts (alt+up, alt+down).
Repro:
- Create a test folder
- Set to Custom Order
- Using the New Page button, create 3 pages titled respectively "a", "b", and "c". These will initially be displayed in the order c, b, a since latest is at top.
- Drag page "a" - the page in third position - to position it between the other two. (Or press alt+up arrow once.) This works fine.
- Delete all three pages (send to trash)
- Repeat steps 3-4
Result:
Page "a" is positioned at the top of the list
Expected:
Page "a" is positioned between the other two, where it was dropped
Continued steps showing that this is a Trash issue:
- Delete all pages in folder again
- CLEAR all these pages ("a," "b", "c") from trash
- Repeat steps 3-4
Result:
It works again! "a" is positioned between the other two pages.
Notes
I filed a (related issue)[Bug: Page reordering always moves page to very top - #4 by lukewlms] a few months ago, but after inconsistent repros in some folders I realized it's a per-folder issue. The critical point is that if there are no pages in the trash for the current folder then drag/drop works fine.
I'm currently able to work around this using an "Interim Trash" folder. Instead of deleting, I use a macro to move pages to a different folder, and then delete. That way deleted pages do not interfere with sort ordering. (I had to do a one-time trash clear to fix all folders affected; I could have probably also moved them all to the Intermediate Trash folder via the API to achieve the same thing.)
This also repros in latest stable Mac Joplin version (3.1.24).
Joplin Version (prerelease)
Joplin 3.2.6 (prod, darwin)
Client ID: 6a443486fb4247e8aba3b23a50ff505e
Sync Version: 3
Profile Version: 47
Keychain Supported: Yes
Revision: 40914be
Backup: 1.4.2
Freehand Drawing: 2.13.0
Rich Markdown: 0.15.1