[WFX] Sort order of ft_boolean content fields inconsistent

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Dalai
Power Member
Power Member
Posts: 9966
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

[WFX] Sort order of ft_boolean content fields inconsistent

Post by *Dalai »

Hello *.*

while correcting some bugs and cleaning up the code of my Services2 plugin I found a small bug in TC iself. I made the ft_boolean content fields sort descending by returning -1 in FsContentGetDefaultSortOrder (yes/true/1 come first) and that works in TC 32 bit. However, TC 64 bit sorts the other way around, i.e. the column header shows descending sort order while the contents do not.

I made two screenshots:
TC 32 bit
TC 64 bit

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I will check it, thanks.
Author of Total Commander
https://www.ghisler.com
User avatar
Dalai
Power Member
Power Member
Posts: 9966
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

http://www.ghisler.com/history852.txt wrote:13.02.15 Fixed: Content plugin field "boolean", x64 only: Sort order reversed if the plugin returned boolean(-1) instead of boolean(1) (64)
Confirm the fix. Thanks!

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Author of Total Commander
https://www.ghisler.com
Post Reply