Sorting by "date taken" is incorrect

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

Moderator: xnview

townfisch
Posts: 8
Joined: Mon Nov 30, 2026 7:25 am

Sorting by "date taken" is incorrect

Post by townfisch »

Sorting by "date taken" does not work for all EXIF ​​versions. Attached is an example in which photos with EXIF ​​version 2.21 are not arranged chronologically. In Windows Explorer and PhotoScapeX, the sorting is correct.
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 49081
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Sorting by "date taken" is incorrect

Post by xnview »

please send some sample files to reproduce?
townfisch
Posts: 8
Joined: Mon Nov 30, 2026 7:25 am

Re: Sorting by "date taken" is incorrect

Post by townfisch »

I just ran a test: I copied the photos from the source drive (F:\) to the C:\ drive. In that location, they appear in the correct order!
Background: A few days ago, I loaded the photos from the source drive (F:\) into XnView. Photos 1 and 2—which appear in the wrong order—did not originally contain any EXIF ​​capture data. I added this data using the program "Exifer" while the photos were loaded in XnView. Even after restarting the PC, the photos on the F:\ drive still appear in the wrong order.
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 49081
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Sorting by "date taken" is incorrect

Post by xnview »

do you have tried to select the 2 files, and "Update catalog from files"?
jkm
Posts: 774
Joined: Sat May 11, 2024 12:43 am

Re: Sorting by "date taken" is incorrect

Post by jkm »

townfisch wrote: Mon Nov 30, 2026 11:03 am I copied the photos from the source drive (F:\) to the C:\ drive. In that location, they appear in the correct order!
…
I added this data using the program "Exifer" while the photos were loaded in XnView. Even after restarting the PC, the photos on the F:\ drive still appear in the wrong order.
Welcome to the forums, townfisch.

You were asked to post the example files so we could test, but you didn’t. That 2nd screenshot is useless. We would need the actual files with metadata intact to do anything other than speculate.

Probably, you caused this problem by updating the metadata with an external program, and then failing to do an “Update catalog from files” on those images. So XnViewMP isn’t working with the updated metadata; it’s sorting based on cached metadata.

You need to:
1. Select those problematic files, and do “Update catalog from files”.
2. Check to verify the files now sort correctly.

You’ll find they will, because other identical but newly added files (the ones you copied to a new location) sort correctly.

If you continue to have problems, you will have to post example files and your XnView.ini configuration file so that we can verify the metadata and see what might be wrong with your settings.

Hopefully this helps…
townfisch
Posts: 8
Joined: Mon Nov 30, 2026 7:25 am

Re: Sorting by "date taken" is incorrect

Post by townfisch »

Thank your so much for helping me. I performed an "Update catalog from files" operation. Now I have two problems: 1. My ratings are displayed as "No rating" in XnView (in Windows Explorer and PhotoScapeX, all ratings are still visible) and 2. some photos are still sorted incorrectly.
I can upload example photos, but the files are larger than 2 MB.
jkm
Posts: 774
Joined: Sat May 11, 2024 12:43 am

Re: Sorting by "date taken" is incorrect

Post by jkm »

jkm wrote: Mon Nov 30, 2026 7:42 pm If you continue to have problems, you will have to post example files and your XnView.ini configuration file so that we can verify the metadata and see what might be wrong with your settings.
See above.

You can either post the images to some free image hosting service where they will accept full size images, or you can resize the images to make them smaller to attach them here. It doesn’t matter, as long as the metadata stays intact. In your case, making the original files available is probably the smartest route, to avoid any confusions. Make sure you also include files with the rating issue as well as ones with the sorting issue. And we need the ini file, as I said.
User avatar
bugreporter
Posts: 48
Joined: Tue Dec 05, 2017 1:15 pm

Re: Sorting by "date taken" is incorrect

Post by bugreporter »

Additional Info: Windows Explorer for instance saves rating in EXIF and XMP metadata. If it doesn't show up in your XnView catalog, even not after updating catalog from files, there might be some mess with the catalog.

You could use the maintenance options (Settings > Catalog > Maintenance) or try the drastic cure: "Delete all" (which means the whole catalog). Of course you should back up your complete profile folder before doing any destructive things. Or just rename it and see what happens with complete fresh settings at all.
townfisch
Posts: 8
Joined: Mon Nov 30, 2026 7:25 am

Re: Sorting by "date taken" is incorrect

Post by townfisch »

Thanks for the support! Out of the 600 photos in the folder, I’ve rated about 470 using XnView (!). With very few exceptions, these ratings don’t show up in XnView, though they are visible in Windows Explorer. For instance, IMG_5027 has a rating of "3" (not visible in XnView, but visible in Explorer). IMG_5025 has a rating of "1" (and is visible in XnView), but it isn’t sorted by date taken within XnView—even though it has a valid date recorded (it appears in the correct order in Explorer).
Link to gallery: https://postimg.cc/gallery/6wyWzx1
Attachment xnview.ini is not allowed here!
townfisch
Posts: 8
Joined: Mon Nov 30, 2026 7:25 am

Re: Sorting by "date taken" is incorrect

Post by townfisch »

jkm
Posts: 774
Joined: Sat May 11, 2024 12:43 am

Re: Sorting by "date taken" is incorrect

Post by jkm »

The new gallery link works. But the images are useless. They have no metadata at all. As I said, the metadata has to be intact.

You need to figure out how to post/share files properly and intact. I suggest you zip them up, and find a better file sharing site.

You'll need to find a free file sharing site for the ini file then. ZIP it up and post it somewhere. Please make sure your links actually work before posting them here.

Once we have the usable images and the ini, we can try and help.
Last edited by jkm on Tue Dec 01, 2026 7:24 am, edited 1 time in total.
townfisch
Posts: 8
Joined: Mon Nov 30, 2026 7:25 am

Re: Sorting by "date taken" is incorrect

Post by townfisch »

I'm sorry to say a second time, by trying the attachment here there is an error comment "Error Invalid file extension: xnview.ini"
jkm
Posts: 774
Joined: Sat May 11, 2024 12:43 am

Re: Sorting by "date taken" is incorrect

Post by jkm »

If you want help, we need the files. Saying you can't doesn't accomplish anything I'm afraid.

The bottom line is, we have no usable images or ini file.

As I said before, find a file sharing site, zip them up, password protect them if you have to, google how to do it or get help from a friend if you don't know how, and get them posted somewhere, and make sure it works. We'd like to help, but without intact files, we can't. Until that's done, there really nothing more to say. Sorry.
townfisch
Posts: 8
Joined: Mon Nov 30, 2026 7:25 am

Re: Sorting by "date taken" is incorrect

Post by townfisch »

This was the message
You do not have the required permissions to view the files attached to this post.
townfisch
Posts: 8
Joined: Mon Nov 30, 2026 7:25 am

Re: Sorting by "date taken" is incorrect

Post by townfisch »

I made a .zip from xnview.ini, here attached.
And again the link to the gallery:
https://postimg.cc/gallery/JRmJTx0
You do not have the required permissions to view the files attached to this post.