This forum uses cookies. Click X button to hide this message. What is stored? / Privacy
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sorting in policies folder

 
Post new topic   Reply to topic    Total Commander Forum Index -> TC8.5x bug reports (English) Printable version
View previous topic :: View next topic  
Author Message
wanderer
Power Member
Power Member


Joined: 28 Mar 2003
Posts: 1257
Location: Sol

PostPosted: Wed Oct 05, 2016 7:54 am    Post subject: Sorting in policies folder Reply with quote

On a domain controller, i went to C:\Windows\SYSVOL\sysvol\<domain>\Policies\ folder. Several subfolder named {xxxx-xxxx-xxxx...} existed under there (SIDs) but even though the sorting was set to "by extension", they appeared unsorted. Is there an explanation for this or it's a bug? I assume the latter.
_________________

- - - Wanderer - - -


¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Latest TC / Mainly Win7x64 SP1, WinXPx32 SP3
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35943
Location: Switzerland

PostPosted: Wed Oct 05, 2016 1:28 pm    Post subject: Reply with quote

Folders are not sorted by extension, even if you choose to sort folders like files. It has been disabled by popular demand.
However, you can re-enable it manually.

Please add the following string to the file wincmd.ini, section [Configuration]:
SortDirExt=1

You can edit the wincmd.ini via Configuration - Change settings files directly.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
wanderer
Power Member
Power Member


Joined: 28 Mar 2003
Posts: 1257
Location: Sol

PostPosted: Wed Oct 05, 2016 1:34 pm    Post subject: Reply with quote

ghisler(Author) wrote:
Folders are not sorted by extension, even if you choose to sort folders like files. It has been disabled by popular demand.
However, you can re-enable it manually.

Please add the following string to the file wincmd.ini, section [Configuration]:
SortDirExt=1

You can edit the wincmd.ini via Configuration - Change settings files directly.


OK, i guess i wasn't clear on this. I know folders are sorted by name. The problem is that the folders i'm talking about have no extension but they are also not sorted by name. They all start with {, and with } and have SIDs in between (sets of numbers separated by -'s. Is there a reason they appear totally unsorted - or rather sorted in a strange order?
_________________

- - - Wanderer - - -


¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Latest TC / Mainly Win7x64 SP1, WinXPx32 SP3
Back to top
View user's profile Send private message
wanderer
Power Member
Power Member


Joined: 28 Mar 2003
Posts: 1257
Location: Sol

PostPosted: Wed Oct 05, 2016 1:40 pm    Post subject: Reply with quote

Here's an example...

http://imgur.com/a/zRP0X

TC v8.52a
_________________

- - - Wanderer - - -


¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Latest TC / Mainly Win7x64 SP1, WinXPx32 SP3
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35943
Location: Switzerland

PostPosted: Wed Oct 05, 2016 1:58 pm    Post subject: Reply with quote

Are you using "natural sorting"? This uses a Windows mechanism to sort both by characters and numbers. The function probably gets confused by the numbers in these names.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
wanderer
Power Member
Power Member


Joined: 28 Mar 2003
Posts: 1257
Location: Sol

PostPosted: Wed Oct 05, 2016 2:12 pm    Post subject: Reply with quote

Ha. Yes, that's the case.

I have "Nat. sort.: aplha and numbers". Changed to "Strictly by num. char code" and it sorted them normally.

Thanks.
_________________

- - - Wanderer - - -


¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Latest TC / Mainly Win7x64 SP1, WinXPx32 SP3
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35943
Location: Switzerland

PostPosted: Wed Oct 05, 2016 2:15 pm    Post subject: Reply with quote

It uses StrCmpLogicalW from Shlwapi library - it leads to different results depending on the installed language. The Explorer seems to use this function too.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
petermad
Power Member
Power Member


Joined: 05 Feb 2003
Posts: 7851
Location: Valsted, Denmark

PostPosted: Wed Oct 05, 2016 2:19 pm    Post subject: Reply with quote

You can find a similar directory in c:\windows\installer to test with.

Here SortUpper=0, 1 or 3 seems to sort these entries correct, but not SortUpper=3.

NTFS also seems to sort them OK (test with Ctrl+F7 Unsorted).
_________________
#524
Danish Total Commander Translator
TC 9.20 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit. TC 2.91b3 on Android 6.0

Get Extended Total Commander Menus
Back to top
View user's profile Send private message Send e-mail Visit poster's website
MVV
Power Member
Power Member


Joined: 03 Aug 2008
Posts: 8053
Location: Russian Federation

PostPosted: Thu Oct 06, 2016 1:31 am    Post subject: Reply with quote

Stupid sorting of hex numbers is one of the main reasons why I don't use natural sorting. Very Happy
_________________
TCFS2 + TCFS2Tools: Full-screen mode for TC etc (forum)
TOTALCMD.NET: AskParam, CopyTree, NTLinks, Sudo, VirtualPanel…
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> TC8.5x bug reports (English) All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Imprint/Impressum: This site is maintained by Ghisler Software GmbH
Privacy Policy | Datenschutzerklärung | Politique de Confidentialité

Using phpBB © phpBB Group