Joplin: "move to notebook" list not sorted in alphabetic order

Created on 14 Apr 2020  路  21Comments  路  Source: laurent22/joplin

Environment

Joplin version: 1.0.200
Platform: linux
OS specifics: debian

Steps to reproduce

  1. when moving note to another notebook the popup list is not sorted in alpha order
bug high

All 21 comments

Hey @foxmask, thanks for reporting. I just checked again for the error you specified, but i don't see any. You can see in the below GIF it is rendering properly according to the notebooks listed in sidebar.

Screen-Recording-2020-04-14-at-3

Can you provide any screenshot or GIF for the problem you're facing? 馃槃

@coderrsid you can see a screencast I made here https://github.com/laurent22/joplin/issues/3053 when I move note ; you can see "Tech" before "Projet" before "Maison" it looks like sorted in the other side.

Thanks for telling but that link is expired and can i ask why we have two different issues for a similar problem?
image

because it's 2 issues ...

image

Although i see there is a sorting issue in here. I'll just fix this ASAP.

Great. Now i can see the issue. Thanks for reporting. 馃槃

@coderrsid btw, the cursor looks really weird in the dialog:

mtnb

Maybe, because it doesn't blink. It only starts blinking when you pick a folder.

Thanks @tessus . I'll look into this too.

@foxmask Can you add the GIF here too please. Unfortunately, the last one is removed again. 馃槃

And one more thing i want to ask is that the order of notebooks shown in your sidebar is perfectly right, the way it should be?

yes the order in the left sidebar is the right one.

here is the gif
joplin-move-bug

Thanks! I'll see what i can do.

@laurent22 Will it be right if i change the way how Folder.allAsTree( ) returns the folders tree in a sorted way instead of just rendering parent and children together but also sort them or instead i should just make them sort for the moveToNotebook . I believe it will be helpful in future use cases.

@tessus In my case, the cursor is working as expected. Although if it is an issue, it should be in all the dialog boxes using inputType: 'dropdown' . Can you check the cursor in the dialog box of Create note from Template or Create to-do from template or Insert Template
Screen-Recording-2020-04-18-at-4 (2)

Will it be right if i change the way how Folder.allAsTree( ) returns the folders tree in a sorted way

How is this done by the web clipper? I believe the function returns a sorted result set. Either way, something like a boolean argument with a default is a good option (sort = true). On the other hand, why would someone ever want a not sorted result?
But maybe people would like the same order they set in Sort notebooks by. This is certainly an architectural question and this is something only Laurent can answer.
If it were me, I'd create a function that takes the sort order as argument, which is called with the order that is set in the menu. IMO that would be the most logical and consistent approach.

Can you check the cursor in the dialog box of Create note from Template or Create to-do from template or Insert Template

In those cases the cursor blinks right away. Not so with the Move to notebook dialog.

How is this done by the web clipper? I believe the function returns a sorted result set. Either way, something like a boolean argument with a default is a good option (sort = true). On the other hand, why would someone ever want a not sorted result?

That's why i asked laurent if i can change it to always return a sorted array by title. 馃槃

But maybe people would like the same order they set in Sort notebooks by. This is certainly an architectural question and this is something only Laurent can answer.

Yeah that would be something he can answer for sure.

If it were me, I'd create a function that takes the sort order as argument, which is called with the order that is set in the menu. IMO that would be the most logical and consistent approach.

that's a great idea, we can add a function which returns the order of the notebooks in the same option set in Sort notebooks by

In those cases the cursor blinks right away. Not so with the Move to notebook dialog.

Although it shouldn't have any problem as the dialog is a part of a simple dropdown which is similarly used in the other components i ask you to test in .. 馃槄 Still i'll just look at it again but do tell me how to reproduce the issue. Than k you so much for suggesting tessus. 馃槃

Will it be right if i change the way how Folder.allAsTree( ) returns the folders tree in a sorted way instead of just rendering parent and children together but also sort them or instead i should just make them sort for the moveToNotebook . I believe it will be helpful in future use cases.

@PackElend @bedwardly-down
what do you think about this?

This is honestly less us and more the dev team. Tessus and Laurent didn鈥檛 respond to that post directly, so I鈥檇 take that as them probably being indifferent to it. With everything going on, it might be better to take a step back here also and just patiently wait for more feedback or ask on the forums.

Sure. As you say sir.

@coderrsid

but do tell me how to reproduce the issue.

Not really much to it. right-click a note and click Move to notebook. The cursor does not blink.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Cogitri picture Cogitri  路  40Comments

gibboni picture gibboni  路  74Comments

alexdevero picture alexdevero  路  43Comments

tessus picture tessus  路  50Comments

jcgerhard picture jcgerhard  路  43Comments