[Sugg] Sorting only according to shown values

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

[Sugg] Sorting only according to shown values

Post by *Hacker »

Would it be possible to add an internal toggle command to let TC sort only according to the shown values? This would be very useful for multiple column sorting.

For instance when sorting by date, TC considers also seconds even though they are not shown. Or when sorting by tc.size.Gbytes TC considers smaller size differences, too, even though the value for all files is "0".

Now if you try to use multiple column sorting, it has little effect, if the sizes aren't absolutely equal (regardless of the "0" shown in the column). With the proposed command the sort would only use the shown values, as might be expected.


Original idea from Neue Features?

TIA
Roman
Last edited by Hacker on 2006-11-09, 23:30 UTC, edited 1 time in total.
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Lefteous
Power Member
Power Member
Posts: 9535
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

This is indeed a very good idea.
User avatar
StickyNomad
Power Member
Power Member
Posts: 1933
Joined: 2004-01-10, 00:15 UTC
Location: Germany

Post by *StickyNomad »

Agree, I also would appreciate such feature.
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Seconds suck

Post by *Clo »

2Hacker

:) Hello Roman !

• I support, of course!

• Sorry, I've missed that thread before…

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Sorry, I've missed that thread before
Me too - support ++
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

I would like that as default behaviour
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: [Sugg] Sorting only according to shown values

Post by *Hacker »

Well, perhaps, 15 years later, there is a chance? :)

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
AntonyD
Power Member
Power Member
Posts: 1231
Joined: 2006-11-04, 15:30 UTC
Location: Russian Federation

Re: [Sugg] Sorting only according to shown values

Post by *AntonyD »

It looks like the time has come to lift this wonderful suggestion out of the dust again.
#146217 personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [Sugg] Sorting only according to shown values

Post by *ghisler(Author) »

Unfortunately I tried and failed. For example, how would you sort a partially shown date or time? or a partially shown size? Just sorting stupidly by the characters does NOT work correctly. And don't even start thinking about multiple fields together...
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: [Sugg] Sorting only according to shown values

Post by *Hacker »

Christian,
Can you please elaborate?
  • Valid dates or times should be treated and sorted as such. Examples of valid dates: "2022", "06.2022", "07.06.2022", "7.6.2022". Examples of valid times: "1:21", "14:28", "1 am", "02:18 pm".
  • Valid numbers should be treated and sorted as such. Examples of valid numbers: "11", "5280146251374968", "18,4385".
  • Everything else should be treated and sorted as a string.
29.17.2022 -> string
2.2022 -> date (1.2.2022)
0 -> number
0,18 -> number
1983 -> date (numbers between 1900 and 2200 could be treated as dates, or worst case, numbers)
5211 -> number
1.6.202suddenlyletter -> string
8 32 15 -> string
XV.VI.MMXXII -> date (kidding, string)
zero point eight -> string

AFAIK valid delimiters for the current locale can be provided by Windows.
This seems like a good start. What am I missing?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: [Sugg] Sorting only according to shown values

Post by *nsp »

ghisler(Author) wrote: 2022-06-07, 08:42 UTC Unfortunately I tried and failed. For example, how would you sort a partially shown date or time? or a partially shown size? Just sorting stupidly by the characters does NOT work correctly. And don't even start thinking about multiple fields together...
I think you want to make it too complicated !
Let the user chose:
You could add a special marker [N][T] in Column definition or a sorting indication in the UI to fix it Default, As plain txt, Natural number...
When it is not defaulted, just use displayed text as reference.

It is very confusing to extract text in a column and sorting is not on the extracted text. Worse it is not possible to sort on what we want i.e Date.M or Time.h ... filename starting at char 8 ....
User avatar
nsp
Power Member
Power Member
Posts: 1803
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: [Sugg] Sorting only according to shown values

Post by *nsp »

I would like to have sort built on top of what we see/extract and not from entire wdx_plugin.field / Strings that compose the column definition.
To make it simple i would use only what is extracted as base for comparison :
Tc.fullmane:8- -> String from fullname keep what is after pos 8
tc.writedate:1-4 -> String YYYY
tc.accessdate.M-D-Y : full datetime Field without time
tc.createddate.D.M.y : full datetime Field without time y is the same as Y meaning Year is significant
tc.createtime.h : time hour only
tc.writedate.D a Date where Y = 0, M=1, D is D and Time is 0
tc.modifieddate.h.m:s a DateTime where Date is null and Time with hms
...

As a first attempt i would just put calculated display string a sorted object.

We could probably ignore static string for comparison, about prefix and postfix this is still questionable.

We have in one software (Java) object in listview column that have a Display String and an ordered List with multiple object use for sorting, refresh URL, .... The compounded comparison is based on Comparing iteratively each object in the list using dedicated comparison method.
Post Reply