Page 1 of 1

Name Sort not valid in 18.70

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

Re: Name Sort not valid in 18.70

Posted: 25 Jan 2018 02:33
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

Re: Name Sort not valid in 18.70

Posted: 25 Jan 2018 08:08
by admin
:veryconfused: :eh: Wow, this is totally crazy! Explorer has the same bug. I need a coffee and some meditation... :cup: ... fascinating... :maf:

Re: Name Sort not valid in 18.70

Posted: 25 Jan 2018 08:11
by admin
It's the hyphen... needs further research... wow...

Re: Name Sort not valid in 18.70

Posted: 25 Jan 2018 08:34
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...

Re: Name Sort not valid in 18.70

Posted: 25 Jan 2018 08:52
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!

Re: Name Sort not valid in 18.70

Posted: 25 Jan 2018 09:29
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!

Re: Name Sort not valid in 18.70

Posted: 25 Jan 2018 09:40
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.

Re: Name Sort not valid in 18.70

Posted: 25 Jan 2018 10:32
by PeterH
Maybe this is a side effect of natural (number) sorting?

Re: Name Sort not valid in 18.70

Posted: 25 Jan 2018 10:35
by admin
No, it's not a side effect. It's deliberate smartness.