Page 1 of 2

1.4.3: Sort newly added categories alphabetically

Posted: Wed Mar 29, 2023 8:39 am
by Pterry
XnView: MP 1.4.3 - 64 bit
OS: Windows 10 - 64bit

The List of categories normally is sorted alphabetically in each branch of the tree. But when adding a new category to a branch, the list of categories of that branch is not sorted, so the newly added category stays somwhere at "n" (for "new.."?) until you restart the application.

Effect: You don't find that new category where you would expect it.

To reproduce: Add the categories "Alpha", "Gamma", "Zeta". Then add a new category and name it "Beta".

Actual behaviour: The new category stays between "Gamma" and "Delta".
Expected behaviour: It should get sorted between "Alpha" and "Gamma".

Re: 1.4.3: Sort newly added categories alphabetically

Posted: Wed Mar 29, 2023 9:07 am
by user0
+1

Re: 1.4.3: Sort newly added categories alphabetically

Posted: Mon Apr 03, 2023 1:32 pm
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce

Re: 1.4.3: Sort newly added categories alphabetically

Posted: Tue Apr 18, 2023 12:44 pm
by Pterry
I noticed another behaviour which might be undesired: If you move categories to another parent by dragging and dropping them, they get sorted at the end of the child categories list of their new parent. I'd expect them to get sorted alphabetically, as well.

Example tree:
A
|-A1
|-A2
|-A4
B
|-B1
|-A3
|-B2

If you drag the node "A3" from "B" to "A", the new order is:
A
|-A1
|-A2
|-A4
|-A3
B
|-B1
|-B2

But what you would expect is A3 before A4, of course. This applies to alphabetical values as well as to numerical ones.

Re: 1.4.3: Sort newly added categories alphabetically

Posted: Tue Apr 18, 2023 1:57 pm
by Franky
Hi,

The list isn't refrashing after a modification (creation, renamed or displacement).
If you close and reopen xnviewmp, the sorting will be correct

Re: 1.4.3: Sort newly added categories alphabetically

Posted: Wed Apr 19, 2023 9:57 am
by Pterry
Franky wrote: Tue Apr 18, 2023 1:57 pm Hi,

The list isn't refrashing after a modification (creation, renamed or displacement).
If you close and reopen xnviewmp, the sorting will be correct
That sums it up. 8)

Re: 1.4.3: Sort newly added categories alphabetically

Posted: Wed Apr 19, 2023 11:07 am
by Franky
@Pierre,

Could it be possible to automatically refresh the list after a modification ?
Or at least via a key (F5 which is out of default to refresh) ?

Re: 1.4.3: Sort newly added categories alphabetically

Posted: Tue Jun 13, 2023 3:42 pm
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce the problem.

Re: 1.4.3: Sort newly added categories alphabetically

Posted: Wed Jun 14, 2023 7:33 am
by Franky
Merci

Re: 1.4.3: Sort newly added categories alphabetically

Posted: Fri Jun 16, 2023 4:11 pm
by xnview
This problem is supposed to be fixed in XnView MP 1.5.0 beta. Please check and confirm the bug fix here.

Re: 1.4.3: Sort newly added categories alphabetically

Posted: Tue Jun 20, 2023 7:48 am
by Franky
C'est ok, merci.

Re: 1.4.3: Sort newly added categories alphabetically

Posted: Wed Jun 21, 2023 2:12 pm
by user0
1.5.0b2
A1 - default categories are NOT sorted A-Z ('Other' sould not be the last one)
A2 - when you edit any category below 'Icons' - 'Other' will be auto-sorted, but..
A3 - new position of 'Other' is not remembered and after restart it will be at the end again
there should NOT be any 'magical' behaviour like that

B (same in 1.4.5)
- 'Other' category can be deleted by pressing Delete button, but 'Delete' is diabled in context menu.
Image

C
- there is also crash when clicking on Categories, but need more time to get reproducible steps

Re: 1.4.3: Sort newly added categories alphabetically

Posted: Wed Jun 21, 2023 3:15 pm
by xnview
'Other' category is a special category, and will be always at the end

Re: 1.4.3: Sort newly added categories alphabetically

Posted: Wed Jun 21, 2023 3:47 pm
by user0
Well, than its not special enough as it is possible to rename/delete/move_to_subcat and there is no option to revert these changes.

Speaking about existing behaviour - jumping 'Other' looks weird and unpolished.
imho, auto-sort must auto-sort without excuses, I see no inconvinience of having Other in the middle of the list.

Re: 1.4.3: Sort newly added categories alphabetically

Posted: Thu Jun 22, 2023 8:26 am
by xnview
user0 wrote: Wed Jun 21, 2023 3:47 pm Well, than its not special enough as it is possible to rename/delete/move_to_subcat and there is no option to revert these changes.
should not, but after checking the use, it seems that was old and no more used...