TC4A: Descendning sort by date, files or dirs with same date and time: show names with a number or longer name at first

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

TC4A: Descendning sort by date, files or dirs with same date and time: show names with a number or longer name at first

Post by *DrShark »

The goal of this suggestion is the same as for silmilar suggestion for Total Commander for Windows, because there is a similar use case on Android:

in a context menu of a file "name.txt", use "Copy to Clipboard", then in context menu of any file or the updir ("..") item pick the "Past here (Copy)". a new copy of the file in the same locatiion will be created with the same date/time but with different name, "name(1).txt".

If we use descending sorting "By Date/Time" in Total Commander for Android, we'll see files sorted as follows:

name.txt
name(1).txt

so the newer file "name(1).txt" is lower then older "name.txt", which is not quite expected since we're sorting by date.
It seems like on Windows, here on Android TC is using file name as a second sort criteria when the modification date is the same.

However unlike Windows where TC have access to 3 kinds of dates (modification-write, creation and access date/time), on Android it can show only one kind of date/time. Since we cannot fallback to other kind of date as an addition sort criteria in this case, taking into consideration default Copy/Paste method naming on Android, I suggest if we have files wirh "name.txt" and "name(<number>).txt" when descending sorting is used to sort them as follows:

name(2).txt
name(1).txt
name.txt

and (if we're creating a copy of copied file with this method):

name(1)(1).txt
name(1).txt
name.txt
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Post Reply