Name Sort not valid in 18.70

Things you’d like to miss in the future...
Post Reply
markx
Posts: 2
Joined: 30 Mar 2016 21:56

Name Sort not valid in 18.70

Post by markx »

Invalid name sort

These 3 names are sorted incorrectly

at-waldorf-school-summer-camp.psd
at-waldorf-school-summer-camp-20170130.psd
at-westminster.psd

Sort Name Sample

at-artscouncil.psd
at-artscouncil-20100225.psd
at-athletespeak.psd
at-chyten.psd
at-creativekids.psd
at-good-nick-squash.psd
at-harmonyschools-1.psd
at-kieve.psd
at-lewisschool.psd
at-musictogether.psd
at-nassau-tennis-sc.psd
at-newgrange-summer.psd
at-nhmontessori NOT USED.psd
at-nhmontessorisummer.psd
at-nhmontessorisummer-20110204.psd
at-nnursery-summer.psd
at-pnra.psd
at-proskatesummer.psd
at-ptac-water-polo.psd
at-ramblingpines.psd
at-rising-stars (Original).psd
at-rising-stars.gif
at-rising-stars.psd
at-rising-stars-20170215.psd
at-rutgersprep.psd
at-schoolofrock.psd
att-waldorf-school-sc.psd
att-westminster.psd
att-yus.gif
att-yus-2016.psd
at-waldorf-school-summer-camp.psd
at-waldorf-school-summer-camp-20170130.psd
at-westminster.psd

jupe
Posts: 2757
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Name Sort not valid in 18.70

Post by jupe »

Could it be because these have an extra t as the 3rd character ?

att-waldorf-school-sc.psd
att-westminster.psd
att-yus.gif
att-yus-2016.psd

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Name Sort not valid in 18.70

Post by admin »

:veryconfused: :eh: Wow, this is totally crazy! Explorer has the same bug. I need a coffee and some meditation... :cup: ... fascinating... :maf:

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Name Sort not valid in 18.70

Post by admin »

It's the hyphen... needs further research... wow...

Gandolf

Re: Name Sort not valid in 18.70

Post by Gandolf »

Nothing unusual (or un-usual) in that, hyphens are often ignored in sort routines. Many words can be either hyphenated or not; re-name (rename), re-number etc...

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Name Sort not valid in 18.70

Post by admin »

OK, that must be it. But in this example it looks really disturbing. I will see if I can turn this off somehow...

PS: When the routine is smarter than necessary it's also slower than necessary. I will try to dumb it down and speed it up!

Gandolf

Re: Name Sort not valid in 18.70

Post by Gandolf »

It can be very annoying, whichever way the sort is done. I use different text editors, depending on how I want lists treated, since some ignore hyphens and some don't.
If you do use a flag, then underscores might also be flagged. There may be other characters in different languages - another can of worms!

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Name Sort not valid in 18.70

Post by admin »

Yes, it's annoying indeed. Looks you cannot get around that smartness unless you go for binary sort (A =! a) which is not very nice for sorting files.

BTW, MS nicely writes: "Note Behavior of this function, and therefore the results it returns, can change from release to release. It should not be used for canonical sorting applications."



So, the bottom line is: I cannot change anything here. It's not a bug but built-in Windows smartness. If I would write a native sort routine you would not like the speed of it.

PeterH
Posts: 2776
Joined: 21 Nov 2005 20:39
Location: Germany

Re: Name Sort not valid in 18.70

Post by PeterH »

Maybe this is a side effect of natural (number) sorting?
W7(x64) SP1 German
( +WXP SP3 )

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Name Sort not valid in 18.70

Post by admin »

No, it's not a side effect. It's deliberate smartness.

Post Reply