Everything not sorting customn column by dates logically

Discussion related to "Everything" 1.5 Alpha.
Post Reply
anmac1789
Posts: 669
Joined: Mon Aug 24, 2020 1:16 pm

Everything not sorting customn column by dates logically

Post by anmac1789 »

I have a custom column with this formula:

column1:=IF(ISBLANK($date-taken:),formatfiletime($media-created:),formatfiletime($date-taken:)) sort:column1-ascending


but some of the earlier dates are appearing after the later dates (in the screenshot):

Screenshot 2024-06-16 142543.png
Screenshot 2024-06-16 142543.png (302.05 KiB) Viewed 1262 times
Phlashman
Posts: 41
Joined: Sun Sep 11, 2022 4:57 am

Re: Everything not sorting customn column by dates logically

Post by Phlashman »

looks like it is seeing the date as string which is mm-dd-yyyy, so it it sorting by month, then day, then year. to sort by date the string
needs to be yyyy-mm-dd
anmac1789
Posts: 669
Joined: Mon Aug 24, 2020 1:16 pm

Re: Everything not sorting customn column by dates logically

Post by anmac1789 »

Phlashman wrote: Mon Jun 17, 2024 11:03 am looks like it is seeing the date as string which is mm-dd-yyyy, so it it sorting by month, then day, then year. to sort by date the string
needs to be yyyy-mm-dd
that would also change the date string for date modified and those fields as well as customn columns. when the date modified is displayed differently, it still sorts the date modified logically but the custom column date is sorted not following the same logic as date modified (or date created or date accessed or date taken). Is it because of the fact that everything by default, sees the custom column as text string instead of date string ? How do I have a custom date string just for custom column separate from changing also the date modified fields as well ?
void
Developer
Posts: 16770
Joined: Fri Oct 16, 2009 11:31 pm

Re: Everything not sorting customn column by dates logically

Post by void »

Currently, Everything sees the custom column as a text string instead of a date string.

Please format your custom column to get the desired sorting.
anmac1789
Posts: 669
Joined: Mon Aug 24, 2020 1:16 pm

Re: Everything not sorting customn column by dates logically

Post by anmac1789 »

void wrote: Thu Aug 15, 2024 11:47 pm Currently, Everything sees the custom column as a text string instead of a date string.

Please format your custom column to get the desired sorting.
understood thank you for clarifying
Post Reply