A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows 7 » Windows 7 Forum
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Odd file sort order



 
 
Thread Tools Rate Thread Display Modes
  #1  
Old August 1st 18, 08:20 PM posted to alt.windows7.general
pjp[_10_]
external usenet poster
 
Posts: 1,183
Default Odd file sort order



I'm doing images of my various systems and collecting them on one hard
disk. I notice a very "wrong" sort ordering when viewing the files.

The names in question in the order the appear are

INTEL-FRONTROOM
INTELI5
INTEL-RECROOM
INTEL-SUNPORCH

Shouldn't the INTELI5 entry appear at the bottom of this collection.
Think ascii character "-" comes before any letters but I haven't
checked. Reversing sort order keeps the anamoly, just reversed.

It's as if the hyphen is stripped from the filename before sorting.
Displayed on both Home and Pro 32 & 64 bit.

Now why the hell would anyone do that???
Ads
  #2  
Old August 1st 18, 09:15 PM posted to alt.windows7.general
J. P. Gilliver (John)[_4_]
external usenet poster
 
Posts: 2,679
Default Odd file sort order

In message , pjp
writes:


I'm doing images of my various systems and collecting them on one hard
disk. I notice a very "wrong" sort ordering when viewing the files.

The names in question in the order the appear are

INTEL-FRONTROOM
INTELI5
INTEL-RECROOM
INTEL-SUNPORCH

Shouldn't the INTELI5 entry appear at the bottom of this collection.
Think ascii character "-" comes before any letters but I haven't
checked. Reversing sort order keeps the anamoly, just reversed.

It's as if the hyphen is stripped from the filename before sorting.
Displayed on both Home and Pro 32 & 64 bit.

Now why the hell would anyone do that???


Well, a _reason_ for doing it is that some entity may have a collection
of things sorted - part numbers, for example - that could be keyed in by
a variety of people, some of whom faithfully copy all punctuation, some
of whom ignore it, some of whom convert anything into a dash (or dot, or
underline, or ...); in order to sort/find such a list of entities, one
approach is to ignore all punctuation (and spaces).

Whether Windows (Explorer?) has such an ability - and whether it is
turned on by default, or even whether it _can_ be turned on or off - I
don't know.

There _is_ at least one other sort control option - called something
like "intelligent numbers". It came in with - I think - XP, and is on by
default, and knows about numbers. On the older systems (or if you turn
this off), the numbers 1 to 12 would be sorted as 1, 10, 11, 12, 2, .. 9
whereas with it on, they're sorted 1, 2, ... 9, 10, 11, 12. (Before
this, if you wanted such a set of filenames to sort properly, you had to
put a leading zero into the filenames - 01, ... 09, 10, 11, 12.)
--
J. P. Gilliver. UMRA: 1960/1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf

One of my tricks as an armchair futurist is to "predict" things that are
already happening and watch people tell me it will never happen.
Scott Adams, 2015-3-9
  #3  
Old August 1st 18, 10:47 PM posted to alt.windows7.general
VanguardLH[_2_]
external usenet poster
 
Posts: 10,881
Default Odd file sort order

pjp wrote:

I'm doing images of my various systems and collecting them on one hard
disk. I notice a very "wrong" sort ordering when viewing the files.

The names in question in the order the appear are

INTEL-FRONTROOM
INTELI5
INTEL-RECROOM
INTEL-SUNPORCH

Shouldn't the INTELI5 entry appear at the bottom of this collection.
Think ascii character "-" comes before any letters but I haven't
checked. Reversing sort order keeps the anamoly, just reversed.

It's as if the hyphen is stripped from the filename before sorting.
Displayed on both Home and Pro 32 & 64 bit.

Now why the hell would anyone do that???


Sorting WHAT? Windows Explorer? There are lots of file managers or
other file tools.

If using Windows Explorer, are you clicking on the Name column header to
sort on that column? You show what appear to be only the filenames, so
you have the filetype hidden. Configure Windows Explorer to show the
extension (filetype): Tools - Folder Options - View tab, disable the
"Hide extensions for known file types" option. Could be you are mixing
filetypes in your sort.
  #4  
Old August 1st 18, 10:59 PM posted to alt.windows7.general
pjp[_10_]
external usenet poster
 
Posts: 1,183
Default Odd file sort order

In article , says...

In message , pjp
writes:


I'm doing images of my various systems and collecting them on one hard
disk. I notice a very "wrong" sort ordering when viewing the files.

The names in question in the order the appear are

INTEL-FRONTROOM
INTELI5
INTEL-RECROOM
INTEL-SUNPORCH

Shouldn't the INTELI5 entry appear at the bottom of this collection.
Think ascii character "-" comes before any letters but I haven't
checked. Reversing sort order keeps the anamoly, just reversed.

It's as if the hyphen is stripped from the filename before sorting.
Displayed on both Home and Pro 32 & 64 bit.

Now why the hell would anyone do that???


Well, a _reason_ for doing it is that some entity may have a collection
of things sorted - part numbers, for example - that could be keyed in by
a variety of people, some of whom faithfully copy all punctuation, some
of whom ignore it, some of whom convert anything into a dash (or dot, or
underline, or ...); in order to sort/find such a list of entities, one
approach is to ignore all punctuation (and spaces).

Whether Windows (Explorer?) has such an ability - and whether it is
turned on by default, or even whether it _can_ be turned on or off - I
don't know.

There _is_ at least one other sort control option - called something
like "intelligent numbers". It came in with - I think - XP, and is on by
default, and knows about numbers. On the older systems (or if you turn
this off), the numbers 1 to 12 would be sorted as 1, 10, 11, 12, 2, .. 9
whereas with it on, they're sorted 1, 2, ... 9, 10, 11, 12. (Before
this, if you wanted such a set of filenames to sort properly, you had to
put a leading zero into the filenames - 01, ... 09, 10, 11, 12.)


And I do put leading zero's in
  #5  
Old August 1st 18, 11:02 PM posted to alt.windows7.general
mick
external usenet poster
 
Posts: 280
Default Odd file sort order

On 01/08/2018 22:47:40, VanguardLH wrote:
pjp wrote:

I'm doing images of my various systems and collecting them on one hard
disk. I notice a very "wrong" sort ordering when viewing the files.

The names in question in the order the appear are

INTEL-FRONTROOM
INTELI5
INTEL-RECROOM
INTEL-SUNPORCH

Shouldn't the INTELI5 entry appear at the bottom of this collection.
Think ascii character "-" comes before any letters but I haven't
checked. Reversing sort order keeps the anamoly, just reversed.

It's as if the hyphen is stripped from the filename before sorting.
Displayed on both Home and Pro 32 & 64 bit.

Now why the hell would anyone do that???


Sorting WHAT? Windows Explorer? There are lots of file managers or
other file tools.

If using Windows Explorer, are you clicking on the Name column header to
sort on that column? You show what appear to be only the filenames, so
you have the filetype hidden. Configure Windows Explorer to show the
extension (filetype): Tools - Folder Options - View tab, disable the
"Hide extensions for known file types" option. Could be you are mixing
filetypes in your sort.


No, it is not that, it is a windows explorer thing and there is nothing
to I can see to overcome it.
It also happens in win 10 as well.
Directory Opus sorts those files 'correctly' or how PJP would have
expected them to be sorted.

--
mick
  #6  
Old August 1st 18, 11:05 PM posted to alt.windows7.general
pjp[_10_]
external usenet poster
 
Posts: 1,183
Default Odd file sort order

In article , says...

pjp wrote:

I'm doing images of my various systems and collecting them on one hard
disk. I notice a very "wrong" sort ordering when viewing the files.

The names in question in the order the appear are

INTEL-FRONTROOM
INTELI5
INTEL-RECROOM
INTEL-SUNPORCH

Shouldn't the INTELI5 entry appear at the bottom of this collection.
Think ascii character "-" comes before any letters but I haven't
checked. Reversing sort order keeps the anamoly, just reversed.

It's as if the hyphen is stripped from the filename before sorting.
Displayed on both Home and Pro 32 & 64 bit.

Now why the hell would anyone do that???


Sorting WHAT? Windows Explorer? There are lots of file managers or
other file tools.

If using Windows Explorer, are you clicking on the Name column header to
sort on that column? You show what appear to be only the filenames, so
you have the filetype hidden. Configure Windows Explorer to show the
extension (filetype): Tools - Folder Options - View tab, disable the
"Hide extensions for known file types" option. Could be you are mixing
filetypes in your sort.


No that's certainly not relevant seeing as I'm specifically talking
about folders here. The examples I gave are all image backups folders
made by Windows backup. In other words they are simply the names of the
various pcs and used as folder names, the image backup creates the
folders. There's nothing specifically special about any of them, just
have some files and folders inside them. Just seems so odd that the
hyphen for all intents and purposes doesn't seem to exist for the
sorting. It must get stripped out rather than even converted to a space
by the behaviour it exibits, e.g. INTEL-RECROOM becomes INTELRECROOM and
that's what it uses to do the sorting.

As I said very odd and not expected if nothing else.
  #7  
Old August 1st 18, 11:33 PM posted to alt.windows7.general
Paul[_32_]
external usenet poster
 
Posts: 11,873
Default Odd file sort order

pjp wrote:
In article , says...
pjp wrote:

I'm doing images of my various systems and collecting them on one hard
disk. I notice a very "wrong" sort ordering when viewing the files.

The names in question in the order the appear are

INTEL-FRONTROOM
INTELI5
INTEL-RECROOM
INTEL-SUNPORCH

Shouldn't the INTELI5 entry appear at the bottom of this collection.
Think ascii character "-" comes before any letters but I haven't
checked. Reversing sort order keeps the anamoly, just reversed.

It's as if the hyphen is stripped from the filename before sorting.
Displayed on both Home and Pro 32 & 64 bit.

Now why the hell would anyone do that???

Sorting WHAT? Windows Explorer? There are lots of file managers or
other file tools.

If using Windows Explorer, are you clicking on the Name column header to
sort on that column? You show what appear to be only the filenames, so
you have the filetype hidden. Configure Windows Explorer to show the
extension (filetype): Tools - Folder Options - View tab, disable the
"Hide extensions for known file types" option. Could be you are mixing
filetypes in your sort.


No that's certainly not relevant seeing as I'm specifically talking
about folders here. The examples I gave are all image backups folders
made by Windows backup. In other words they are simply the names of the
various pcs and used as folder names, the image backup creates the
folders. There's nothing specifically special about any of them, just
have some files and folders inside them. Just seems so odd that the
hyphen for all intents and purposes doesn't seem to exist for the
sorting. It must get stripped out rather than even converted to a space
by the behaviour it exibits, e.g. INTEL-RECROOM becomes INTELRECROOM and
that's what it uses to do the sorting.

As I said very odd and not expected if nothing else.


One complication, is whether sorting is set for

"canonical sort order"
"numeric sort order"

At the moment, I don't have a good reference for what
the names could be, or what I should be searching for.
This is a hint, that there is more than one sort order.

https://support.microsoft.com/en-ca/...-numerals-is-d

*******

The other detail about explorer is:

1) You can sort ascending or descending via one criterion.
The choice may be saved between sessions (using the
appropriate View button perhaps).

2) Via some trickery, it's possible to set the sort
criteria to "none". But this setting is not remembered,
and if you custom arrange things in an icon view, you're
likely to lose all your hand-sorts. Via a third party tool,
a tool which records icon position when you use a hotkey,
you can "make" a feature out of this.

3) The third one, I'd never hear of before until now.
For certain combinations of columns, Explorer supports
"shift-click" secondary selection. You can click the
Type field and have all the Applications ending in .exe
sorted into order. Then, if you hold the Shift key
and hit the Size field, the Applications stay together,
but their secondary sort order is via ascending or
descending size.

Note that arbitrary combinations of columns do not work.
This is why you would not have discovered this by accident.
And... the most useful combinations don't work.

The only point of mentioning all this, is to give
you some idea how large the fault tree is for this
question.

I'm pretty sure one of the sort orders by name is
called "canonical", but I don't know what exactly
the other one is called. Maybe someone else can find
an article with clearer examples.

HTH,
Paul
  #8  
Old August 2nd 18, 08:56 AM posted to alt.windows7.general
VanguardLH[_2_]
external usenet poster
 
Posts: 10,881
Default Odd file sort order

pjp wrote:

In article , says...

pjp wrote:

I'm doing images of my various systems and collecting them on one hard
disk. I notice a very "wrong" sort ordering when viewing the files.

The names in question in the order the appear are

INTEL-FRONTROOM
INTELI5
INTEL-RECROOM
INTEL-SUNPORCH

Shouldn't the INTELI5 entry appear at the bottom of this collection.
Think ascii character "-" comes before any letters but I haven't
checked. Reversing sort order keeps the anamoly, just reversed.

It's as if the hyphen is stripped from the filename before sorting.
Displayed on both Home and Pro 32 & 64 bit.

Now why the hell would anyone do that???


Sorting WHAT? Windows Explorer? There are lots of file managers or
other file tools.

If using Windows Explorer, are you clicking on the Name column header to
sort on that column? You show what appear to be only the filenames, so
you have the filetype hidden. Configure Windows Explorer to show the
extension (filetype): Tools - Folder Options - View tab, disable the
"Hide extensions for known file types" option. Could be you are mixing
filetypes in your sort.


No that's certainly not relevant seeing as I'm specifically talking
about folders here.


"when viewing the files". Sure looked like you were asking about files,
especially since folders weren't mentioned in your starting post.

The examples I gave are all image backups folders
made by Windows backup. In other words they are simply the names of the
various pcs and used as folder names, the image backup creates the
folders. There's nothing specifically special about any of them, just
have some files and folders inside them. Just seems so odd that the
hyphen for all intents and purposes doesn't seem to exist for the
sorting. It must get stripped out rather than even converted to a space
by the behaviour it exibits, e.g. INTEL-RECROOM becomes INTELRECROOM and
that's what it uses to do the sorting.

As I said very odd and not expected if nothing else.


Perhaps it has to do with intuitive numbering order established since
Windows XP. See:

https://www.askvg.com/how-to-disable...nd-7-explorer/

See if reverting to literal sorting order makes a change in how the
folders are arranged in Windows Explorer.
 




Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off






All times are GMT +1. The time now is 04:59 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.