Unconditional sorting of tags

Started by larssundin, June 19, 2020, 06:28:45 AM

Previous topic - Next topic

larssundin

I use a user defined shortlist to produce a csv file. The reusult is sorted alphabetically with me using the sort argument.

My findings:
1) By changing the order of the arguments I can get an unsorted result.
2) Adding '#' (for no PrintConversion) to some tags trigger sorting.
3) Maybe it's just random.

Phil Harvey

This is a bit complex.  I really should look at the code here, but the attempt is to return the columns in the same order they were requested:

> exiftool -subject -keywords -artist -csv a.jpg b.jpg
SourceFile,Subject,Keywords,Artist
a.jpg,,"one,two",
b.jpg,a picture,,me


If you can provide a simple example like this that behaves unexpectedly, I'll analyze it to see what is happening.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).