Can I sort by Date Created first and then have the folder names in Alphabetical order?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
eil
Posts: 1888
Joined: 13 Jan 2011 19:44

Re: Can I sort by Date Created first and then have the folder names in Alphabetical order?

Post by eil »

python80 wrote: 21 Aug 2026 05:09 compare its creation date/time with its modified date/time, and then display whichever one is older (earlier in time).
If you didn't mess with dates manually than for sure Created would always be older than Modified... :ninja: But as a matter of fact, yes = whatever dates sorting you want can be achieved with scripting/custom column.
Win 7 SP1 x64 100% 1366x768|1900x1080

RalphM
Posts: 2123
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Can I sort by Date Created first and then have the folder names in Alphabetical order?

Post by RalphM »

eil wrote: 22 Aug 2026 22:07 If you didn't mess with dates manually than for sure Created would always be older than Modified... :ninja:
Not true, google it!
Copying files onto a new system or unzipping an archive can lead to created dates being newer than modified. :ninja:
Ralph :)
(OS: W11 25H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)

eil
Posts: 1888
Joined: 13 Jan 2011 19:44

Re: Can I sort by Date Created first and then have the folder names in Alphabetical order?

Post by eil »

RalphM wrote: 23 Aug 2026 01:44 Copying files onto a new system or unzipping an archive can lead to created dates being newer than modified. :ninja:
True, never happened to me that's why didn't know.
Well, anyways, XY CC can handle that.
Win 7 SP1 x64 100% 1366x768|1900x1080

jupe
Posts: 3483
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Can I sort by Date Created first and then have the folder names in Alphabetical order?

Post by jupe »

python80 wrote: 21 Aug 2026 05:09 Hi,

Is it possible to create a scripted custom column in XYplorer that displays and sorts by the earlier date between 'Date Created' and 'Date Modified'?

Specifically, for each item, the custom column should compare its creation date/time with its modified date/time, and then display whichever one is older (earlier in time).

Thanks in advance!
Quick example:

Code: Select all

 $m = filetime(<cc_item>, m);
 $c = filetime(<cc_item>, c);
 return ($m <= $c ? $m : $c);

Post Reply