Question about sorting and categories

Ask for help and post your question on how to use XnView MP.

Moderators: helmut, XnTriq, xnview

Post Reply
ShardBot
Posts: 2
Joined: Fri Oct 06, 2023 4:54 pm

Question about sorting and categories

Post by ShardBot »

I'll try to explain in more detail.
For example, I have a category *Nature*. It has several subcategories, for example *Sea*, *Forest*, *Mountain*, *River*
How can I make that when I select the *Nature* category, the photos in it are sorted by specific subcategories, and not by date, size, etc. I did not find this function, sorting by subcategories.
The example is not very good, but I think it is clear. Correct me if I'm wrong somewhere, and I apologize again, I'm trying Xnview MP for the first time. I will be grateful for any help
User avatar
xnview
Author of XnView
Posts: 46273
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Question about sorting and categories

Post by xnview »

Do you write category in metadatas?
Pierre.
ShardBot
Posts: 2
Joined: Fri Oct 06, 2023 4:54 pm

Re: Question about sorting and categories

Post by ShardBot »

xnview wrote: Sat Oct 07, 2023 8:36 am Do you write category in metadatas?
Yes, I changed the category in IPTC, but I still don’t understand how I can sort a folder by subcategory
User avatar
michel038
XnThusiast
Posts: 1468
Joined: Tue Sep 27, 2016 8:18 am
Location: France
Contact:

Re: Question about sorting and categories

Post by michel038 »

If you use hierarchical iptc keywords, ( Settings > Metadata > Write categories into images as hierarchical keywords ) ,
you'll be able to sort on keywords: View > Sort by > Show headers
Then In the browser, with a right click you can add/move/delete headers.
Then click on "keywords" header to sort photos by categories / subcategories.
Take also a look in detailed view ( View > View as > details )

But it seems that iptc hierarchical keywords are not widely used and not very standardised.
If you use xmp hierarchical keywords at the same time, the standardisation (Adobe! :evil: ) is better. (Settings > Metadata > Create XMP data)
However, XnViewMp does not offer a sorting function for xmp keywords.
User avatar
michel038
XnThusiast
Posts: 1468
Joined: Tue Sep 27, 2016 8:18 am
Location: France
Contact:

Re: Question about sorting and categories

Post by michel038 »

A better solution:
View > Sort by > Show headers
View > View as > Details
Right click on a header and enable "Categories" in the list, in order to display this column.
If "categories" column is too far to the right, you can drag it to the left.
Come back to View > View as > Thumbnails + labels
Click on "Categories" header will sort photos.

A small bug remains, if some categories start with a capital letter, they will be displayed at the top of the list.
Post Reply