# \[X\] %\_file\_mod\_datetime% Does Not Sort Correctly

**URL:** https://community.mp3tag.de/t/x-file-mod-datetime-does-not-sort-correctly/6067
**Category:** No Bugs
**Created:** [January 14, 2008, 6:28pm UTC](https://community.mp3tag.de/t/x-file-mod-datetime-does-not-sort-correctly/6067 "2008-01-14T18:28:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![JFord](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jford/32/4977_2.png) [@JFord](https://community.mp3tag.de/u/JFord)
#### Post date: [January 14, 2008, 6:28pm UTC](https://community.mp3tag.de/t/x-file-mod-datetime-does-not-sort-correctly/6067/1 "2008-01-14T18:28:06Z")

</div>

I have added %\_file\_mod\_datetime% to the view. The display format on my machine is mm/dd/yyyy hh:mm AM/PM. When I choose to sort on that column it appears to sort as a string with 2:08PM sorting before 7:11AM.

I will write a function to correct this, but figured you might consider it a bug. I figure I may need to take the year into account as well.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 14, 2008, 8:05pm UTC](https://community.mp3tag.de/t/x-file-mod-datetime-does-not-sort-correctly/6067/2 "2008-01-14T20:05:33Z")

</div>

Use %\_file\_mod\_datetime\_raw% at Sort by.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [December 28, 2018, 2:21pm UTC](https://community.mp3tag.de/t/x-file-mod-datetime-does-not-sort-correctly/6067/3 "2018-12-28T14:21:09Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
