It is currently Mon Jun 18, 2018 9:14 pm
All times are UTC + 8 hours

Asustor NAS folder indexing, sorting etc.

Got a question about our NAS utilities? The answer lies within.

Asustor NAS folder indexing, sorting etc.

Postby ddutoit777 » Sat Mar 10, 2018 4:59 pm

Hi all,

I have an Asustor T1002 server and use a TV on the same network to stream from.

I noticed that the file indexing is a bit weird, for instance if I have files marked as "episode 1" to "episode 20" it will order the files as "Episode 1", "Episode 10", "Episode 2" etc. which is not right.

Furthermore it just creates all these unnecessary folders inbetween that I don't really want or need i.e. videos, pictures etc. when I literally just want to show the files that are there as I set them up.

Is there a way to clean all this up and ensure that it sorts the files correctly?
Posts: 2
Joined: Sat Mar 10, 2018 4:36 pm

Re: Asustor NAS folder indexing, sorting etc.

Postby MikeG.6.5 » Tue Apr 17, 2018 9:27 pm

You don't say which app suite you are using to view the media. but I can tell you from first hand experience that the issue with name sorting is just as likely the way your TV handles your naming convention.

Try naming the files like this:
showname - S##E##.ext

For example:
Between - S01E01.mp4

See if renaming the shows has an affect on how they are sorted.

Another way around this would be to use a streaming suite for viewing the shows. Emby or Plex could work just as well for you as your current method, and since both of these suites are fully supported suites by a dedicated 3rd party team, getting them to work is fairly straight forward. Of course both of these suites have their own naming conventions you should try to adhere to. (Otherwise you are likely to have a bunch of other problems along the way.)

I have some tips in my signature for optimizing media, including naming conventions, which might help you out a bit.
Posts: 910
Joined: Fri May 15, 2015 1:56 am

Re: Asustor NAS folder indexing, sorting etc.

Postby Antonios » Wed Apr 18, 2018 1:03 am

NAS does 'simple' sorting and not 'logical' sorting. Logical is what we humans are used to.

Simple sorting is done by comparing each character's ASCII hex value in the order these characters appear in any given string, does not distinguish between numeric characters or letters or whatever, each ASCII character has a hex value and an order of appearance, these are the only criteria, so obviously you get this


As was pointed out, you can work around this by forcing fixed length strings for numbers using leading zeros since we are talking integers here, then 'simple' sorting yields same results as 'logical' sorting.


or 001<002<003<010<100 etc

Just my 2c.
Posts: 65
Joined: Tue Jun 27, 2017 1:05 pm

Return to NAS Utilities

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 4 guests