Category view sorting.

Started by rafiki, September 28, 2017, 10:06:10 AM

Previous topic - Next topic

rafiki

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.

Mario

Which sort mode do you use for the Category View?

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

rafiki


sinus

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.
Best wishes from Switzerland! :-)
Markus

Mario

@Keywords is a data-driven category.  It always uses a alphanumerical sort.

Did you try to refresh it manually?
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

rafiki


Mario

Do you see the same sort sequence also in the Category Panel?
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

rafiki

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.

Mario

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?
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

thrinn

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).
Thorsten
Win 10 / 64, IMatch 2018, IMA

Mario

@Keywords is special in that respect, it is the only data-driven category which allows manual reordering.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

rafiki

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.

Mario

Strange...but I'm happy to hear that you solved it.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook