Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Weird file sort order


  • Please log in to reply
7 replies to this topic

#1
kumarkumar

kumarkumar

    Member

  • Member
  • PipPip
  • 139 posts

I have a TV which has its own weird "method" of sorting media files. The manual specification doesn't talk anything about it. I always wanted to find this method.
I turned to my Windows7 computer to figure what this "method" could be. Whatever file properties windows explorer displays (Size, Date modified, Date created, Date last saved, Content created, Date, Bit rate, etc.), I tried sorting by them. Still it wouldn't match that that my TV uses.
Then yesterday I happened to find this program called "File Attributes Editor" (link). I was surprised to see that the default file sorting order of this program is the same as used my TV. I couldn't find any contact of the author to ask him what this "method" is. So I am posting it here, if anyone can figure this out.




How to remove advertisement from MSFN

#2
kumarkumar

kumarkumar

    Member

  • Member
  • PipPip
  • 139 posts

Sorry got it after some fiddling.

There was some strange problem in the flash drive that contained the files. I cut & copied all the files to my computer and then copied all of them back to the flash drive. Now the sorting is having some sense.

 

It sorts by name, but not like what windows does. In Windows if there are numbers in filename then it would sort as

File 1

File 2

File 4

File 11

File 33

 

In my TV the above files sort as below (and it makes sense now, but prior to all the cut paste, it was sort of like random).

File 1

File 11

File 2

File 33

File 4


Edited by kumarkumar, 06 September 2013 - 01:20 AM.


#3
bphlpt

bphlpt

    MSFN Addict

  • Member
  • PipPipPipPipPipPipPip
  • 1,798 posts
  • OS:none specified
  • Country: Country Flag

You might want to check this out as further explanation.  I believe that what it describes is true for all versions of Windows,  XP and later.

 

I guess you could say that apparently your TV uses the classic Win2K sort method.

 

Cheers and Regards


Edited by bphlpt, 06 September 2013 - 02:12 AM.

Posted Image


#4
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,374 posts
  • OS:none specified
  • Country: Country Flag

And the "solution" (if needed) is to "pad" numbers on the left with 0's to the max number.

I.e.

1->01

2>02

etc.

should give you same order from 01 to 99 on both devices.

 

jaclaz



#5
kumarkumar

kumarkumar

    Member

  • Member
  • PipPip
  • 139 posts

Thanks bphlpt & jaclaz.

 

There is still something strange with the flash drive (HP v220w). In my flash drive, if I add media files to a folder containing exisiting files, even though the new filenames begin with the letter A, they appear at the end in my TV (and in that File Attributes Editor program too). Windows sorts them correctly though.

I have do that cut paste operation for all the files between the flash drive & my computer to get them sorted correctly.

I think the flash drive is the culprit. Don't know what is it thats changing between the file moves.



#6
Tripredacus

Tripredacus

    K-Mart-ian Legend

  • Super Moderator
  • 9,803 posts
  • OS:Server 2012
  • Country: Country Flag

Donator

So that explains what I see on my file server and I always wonder why the folders are "out of order" because I'm still thinking in Windows 2000 terms! This is what I am seeing:

 

strange_sort_zpsbc936c57.jpg

 

Its not a natural way of viewing files with numbers if you ask me.


MSFN RULES | GimageX HTA for PE 3-5 | lol probloms
msfn2_zpsc37c7153.jpg

#7
5eraph

5eraph

    Update Packrat

  • MSFN Sponsor
  • 1,152 posts
  • OS:XP Pro x64
  • Country: Country Flag

Donator

I totally agree, Tripredacus. Microsoft had to dumb it down for the average consumer, which was not exposed to DOS.

#8
jaclaz

jaclaz

    The Finder

  • Developer
  • 14,374 posts
  • OS:none specified
  • Country: Country Flag

Well, in the case of Tripredacus, the numbers are hex numbers with a given (four characters format), and thus even in a number of apps/tools (as an example a spreadsheet) may be interpreted alternatively as "text" or as numbers, in his example "considering them as text" is actually "good" and corresponds to "proper" hex number ordering.

Examples:

1111 <- this is both a valid  decimal number AND a valid "fixed format" hex number AND text

111A <- this is NOT a valid decimal number BUT a valid "fixed format" hex number AND text

AAAA <- this is NOT a valid decimal number BUT a valid "fixed format" hex number AND text

 

So, the way of sorting them as in the screenshot posted is actually not only "natural", but the only "logical" one.

 

jaclaz






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN