photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: rafiki on September 28, 2017, 10:06:10 AM

Title: Category view sorting.
Post by: rafiki on September 28, 2017, 10:06:10 AM
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.
Title: Re: Category view sorting.
Post by: Mario on September 28, 2017, 10:55:46 AM
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)
Title: Re: Category view sorting.
Post by: rafiki on September 28, 2017, 11:37:09 AM
I have tried them all.
Title: Re: Category view sorting.
Post by: sinus on September 28, 2017, 12:55:48 PM
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.
Title: Re: Category view sorting.
Post by: Mario on September 28, 2017, 01:44:28 PM
@Keywords is a data-driven category.  It always uses a alphanumerical sort.

Did you try to refresh it manually?
Title: Re: Category view sorting.
Post by: rafiki on September 28, 2017, 03:02:02 PM
I did, and again just now.
Title: Re: Category view sorting.
Post by: Mario on September 28, 2017, 03:18:20 PM
Do you see the same sort sequence also in the Category Panel?
Title: Re: Category view sorting.
Post by: rafiki on September 28, 2017, 03:54:46 PM
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.
Title: Re: Category view sorting.
Post by: 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?
Title: Re: Category view sorting.
Post by: thrinn on September 28, 2017, 04:31:18 PM
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).
Title: Re: Category view sorting.
Post by: Mario on September 28, 2017, 04:50:54 PM
@Keywords is special in that respect, it is the only data-driven category which allows manual reordering.
Title: Re: Category view sorting.
Post by: rafiki on September 29, 2017, 12:18:13 PM
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.
Title: Re: Category view sorting.
Post by: Mario on September 29, 2017, 03:33:46 PM
Strange...but I'm happy to hear that you solved it.