[Bug] Sorting by size - wrong order

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Gazer
Junior Member
Junior Member
Posts: 3
Joined: 2005-05-17, 09:09 UTC

[Bug] Sorting by size - wrong order

Post by *Gazer »

Hello,
My files/folders sizes displayed in "All_Dims" form (unit of measure is not fixed b,kb,Mb,Gb).
The bug is that sorting by size ignores units, and looks only at number of units. E.g. four files with sizes 10b, 3Kb, 5Mb, 7Gb would be sorted like this:
3Kb
5Mb
7Gb
10b.

Is it known bug? I have used search in forum, but didn't find it.
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

I cannot confirm this, my TC 6.52 sorts correctly:

Code: Select all

..	<DIR>	2005.05.17 11:03	----
2005.04.16 Dia szülinap	231,5 M	2005.04.17 17:25	----
2005.04.27 Anyák napja ..	88,3 M	2005.04.27 19:35	----
2005.04.17 Mamáéknál	60,1 M	2005.04.27 19:31	----
2005.05.14 Gyerekfesztivál	43,3 M	2005.05.14 13:55	----
2005.04.29 Anyák napja ..	38,1 M	2005.05.01 22:05	----
2005.05.16 Bakonykuti	28,1 M	2005.05.16 13:03	----
2005.05.08 Dédi szülinapja	9,9 M	2005.05.10 17:31	----
2005.04.23 Dani forog a k..	8,8 M	2005.04.23 20:16	----
2005.04.05 Dani szülinap	7,4 M	2005.04.08 23:26	----
2005.05.15 Gyüliben	4,3 M	2005.05.16 13:02	----
2005.04.21 Dani, Tekla, Á..	3,6 M	2005.04.21 21:04	----
2005.03.29 Esti mese	2,6 M	2005.04.08 23:25	----
2005.03.22 Tekla és Dani ..	1,5 M	2005.04.08 23:24	----
2005.04.14 Frank és Ákos	1,3 M	2005.04.14 19:23	----
2004.07.31 Jim wedding	870,4 k	2005.05.17 11:03	----
2005.05.12 Ákos alszik	828,8 k	2005.05.14 13:54	----
2005.04.09 Gyerekfesztiv..	803,8 k	2005.04.10 23:25	----
2005.05.10 Dia és Jakab	509,3 k	2005.05.14 13:54	----
I switched to Linux, bye and thanks for all the fish!
User avatar
Hacker
Moderator
Moderator
Posts: 13141
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

I don't confirm, either, neither with dynamic x setting nor with dynamic x.x setting. XP SP2.

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.
Gazer
Junior Member
Junior Member
Posts: 3
Joined: 2005-05-17, 09:09 UTC

Post by *Gazer »

Image: http://gazer.at.tut.by/bug.jpg
No photoshop.
Total version - 6.52. Sizes - [=dirsizecalc.Size (on demand).All_Dims].
Thoughts?
P.S. How could I add images in my posts??
User avatar
Flint
Power Member
Power Member
Posts: 3501
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

I don't confirm this too, all files/folders are sorted correctly...

Edited: sorry, I posted it before I read that a new message from Gazer appeared.
In this case such behaviour is possible, because TC don't know that "3k", "7M" and so on are file sizes, and it sorts them as usual strings. I'm not sure at present if this can be easily fixed...
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

Well, you could write at once that it's a problem of sorting in plugin, not in TC itself.
Now it really works as you've described.
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
Vansumsen
Power Member
Power Member
Posts: 761
Joined: 2003-11-09, 08:16 UTC
Location: Belgique
Contact:

Post by *Vansumsen »

Hi Gazer,
Please verify :
Configuration >>> Options >>> Display >>> Sorting directories >>> Like files (also by time)
Friendly
Paul
Ouistiti, #11943

L'important n'est pas de convaincre, mais de donner à réfléchir.
The important thing is not to convince, but to incite to think.

1,77245385090552...
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Gazer
To end up the mystery I would like to quote from the DirsizeCalc readme file:
readme.txt wrote:WARNING:
--------
The sort order doesn't work regardless of the Total Commander setting SortUpper.
After all it's a known limitation. The reason is indeed that these values are actually strings. When DirSizeCalc 1.13 has been released there has been no other to display user-defined units.
Now Total Commander 6.52 has been released. It brings several new enhancements to the plugin interface including a clean solution for this problem. Please be patient! DirSizeCalc 1.20 will make use of the enhancements in TC 6.52.
Gazer
Junior Member
Junior Member
Posts: 3
Joined: 2005-05-17, 09:09 UTC

Post by *Gazer »

djk is right. The bug is in DirSizeCalc plugin, not in TC.
Conclusion: back to common Tabstops.

Tnanks to Lefteous also.
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2Gazer
djk is right.
No he is not. DirsizeCalc doesn't sort anything.
The bug is in DirSizeCalc plugin, not in TC.
It seems you didn't get the point. It's not a bug.
Conclusion: back to common Tabstops.
It seems you are not patient at all.. Bad luck!
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

I meant only that it was a problem of sorting while using plugins and not default TC columns. It was not clear after the first post of Gazer :-)
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
Post Reply