I am having trouble sorting an @Keywords list in the Categories View. I have added some new keywords using the 'New Categories' option. But sorting the whole list fails to sort properly. I am wondering what I am doing wrong. Any pointers? I attach a screenshot of the relevant section.You will see the list gets to Yellow Wagtail then starts again with African Pygmy Goose.
Which sort mode do you use for the Category View?
(https://www.photools.com/community/index.php?action=dlattach;topic=7190.0;attach=16407;image)
I have tried them all.
Delete one of the not sorted category and add it again.
See, if this changes something.
Maybe you have once "played" with the custom sort order.
If this does not change something, I have no idea.
@Keywords is a data-driven category. It always uses a alphanumerical sort.
Did you try to refresh it manually?
I did, and again just now.
Do you see the same sort sequence also in the Category Panel?
Quote from: Mario on September 28, 2017, 03:18:20 PM
Do you see the same sort sequence also in the Category Panel?
Yes, identical.
So at least its consistent, then.
Do you use the default settings for the @Keywords category (property panel in the Category View for @Keywords).
Do these keywords perhaps contain leading special characters which are not shown but may affect the sort order?
Quote@Keywords is a data-driven category. It always uses a alphanumerical sort.
Mario, I think this is not always the case. If I configure the category
panel with Sort mode "Custom sort order", I can change the order.
If I then add new categories in the category
view, using the context menu "Add new categories" on the @Keywords node, they are not added in alpabetical order.
(But switching back to Sort Mode Standard, all keywords are sorted correctly. So this is not the same behaviour that rafiki sees).
@Keywords is special in that respect, it is the only data-driven category which allows manual reordering.
Quote from: Mario on September 28, 2017, 04:14:21 PM
So at least its consistent, then.
Do you use the default settings for the @Keywords category (property panel in the Category View for @Keywords).
Do these keywords perhaps contain leading special characters which are not shown but may affect the sort order?
I have now got sorting working as expected. I had not altered the properties for @keywords but following your query, I had a look at it. I switched 'Keep empty categories' to No (I had several empty categories). I switched 'Add auto-group' to Yes then refreshed. Sorting was restored at the expense of losing several categories in the list of course but also I lost all my text colour options. Not a big deal as they are now restored. I have switched both options back to how they were and the list remains sorted and new entries fall into the correct place.
Strange...but I'm happy to hear that you solved it.