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 » 24 Jan 2018 15:26

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: 1244
Joined: 20 Oct 2017 21:14
Location: 1909 x64

Re: Name Sort not valid in 18.70

Post by jupe » 25 Jan 2018 02:33

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: 47977
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: Name Sort not valid in 18.70

Post by admin » 25 Jan 2018 08:08

: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: 47977
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: Name Sort not valid in 18.70

Post by admin » 25 Jan 2018 08:11

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

Gandolf
Posts: 1018
Joined: 14 Jun 2004 20:19

Re: Name Sort not valid in 18.70

Post by Gandolf » 25 Jan 2018 08:34

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...
Those people who think they know everything are a great annoyance to those of us who do.

admin
Site Admin
Posts: 47977
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: Name Sort not valid in 18.70

Post by admin » 25 Jan 2018 08:52

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
Posts: 1018
Joined: 14 Jun 2004 20:19

Re: Name Sort not valid in 18.70

Post by Gandolf » 25 Jan 2018 09:29

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!
Those people who think they know everything are a great annoyance to those of us who do.

admin
Site Admin
Posts: 47977
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: Name Sort not valid in 18.70

Post by admin » 25 Jan 2018 09:40

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: 2580
Joined: 21 Nov 2005 20:39
Location: Germany

Re: Name Sort not valid in 18.70

Post by PeterH » 25 Jan 2018 10:32

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

admin
Site Admin
Posts: 47977
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: Name Sort not valid in 18.70

Post by admin » 25 Jan 2018 10:35

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

Post Reply