FAQ  •  Register  •  Login

Folder sorting

<<

tombert

User avatar

DLNA master

Posts: 217

Joined: Wed Oct 13, 2010 8:01 pm

Post Thu Aug 01, 2013 7:19 pm

Folder sorting

Serviio currently sorts the folders like:

Bravo Hits #1
Bravo Hits #10
Bravo Hits #2
...

I would like to propose sorting also based on [string length] which results in:

Bravo Hits #1
Bravo Hits #2
Bravo Hits #10
...

For example the Windows Explorer already does it that way.

thx
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Aug 01, 2013 7:31 pm

Re: Folder sorting

In that case you could end up with

  Code:
folder A
folder B
folder AB


It'd have to distinguish based on numbers, which might be difficult to do
<<

scottjoc

Serviio newbie

Posts: 3

Joined: Thu Aug 01, 2013 10:43 am

Post Thu Aug 01, 2013 8:48 pm

Re: Folder sorting

The easiest solution to this is to put a 0 before 1 digit seasons, then sort.

Like so

Season 01
Season 02
Season 10

When I have the folders view in Serviio it displays them in perfect order, but when I look in say the series view it looks like this

Season 1
Season 10
Season 2

I actually prefer the folders view because of this and use Mediarenamer to give the episode titles. I am a bit... OCD on things like this though.

Of course if a show had over 100 seasons it could be a problem again, might need 2 zeroes for that :P (I don't think many does)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Aug 01, 2013 10:15 pm

Re: Folder sorting

That yes, and I think 1.3 fixes it for series. But these are actual folders on file system, where Serviio doesn't know some of the characters are numbers.
<<

scottjoc

Serviio newbie

Posts: 3

Joined: Thu Aug 01, 2013 10:43 am

Post Fri Aug 02, 2013 11:06 am

Re: Folder sorting

On my Xbox 360, if I use the series view, it shows seasons like this:

Season 1
Season 10
Season 2

Windows is guilty of this as well, if you don't stick a 0 in front of them.

I couldn't really know if 1.3 fixes it, I asked to be in the beta but never got a reply so I'll have to take your word on it.
<<

mavack

Streaming enthusiast

Posts: 25

Joined: Sun Aug 05, 2012 12:35 pm

Post Mon Aug 05, 2013 8:32 am

Re: Folder sorting

It sorts alphabetically just like a library.

With Seasons i always use Season 01 02 03 etc

This is the same for music files from an album most good ripping programs have the ability to force the leading 0

so
01 - name
02 - name
03 - name

so that alphabetical sort works.
<<

tombert

User avatar

DLNA master

Posts: 217

Joined: Wed Oct 13, 2010 8:01 pm

Post Sat Aug 10, 2013 7:20 pm

Re: Folder sorting

zip wrote:In that case you could end up with

  Code:
folder A
folder B
folder AB


It'd have to distinguish based on numbers, which might be difficult to do


Windows File Explorer (W7) is doing this correctly ... (i tried now).
Whatever sort algorithm Microsoft is using - its cool.

thx
<<

tombert

User avatar

DLNA master

Posts: 217

Joined: Wed Oct 13, 2010 8:01 pm

Post Sat Aug 10, 2013 7:32 pm

Re: Folder sorting

I googled a bit. The sorting I mean is called "natural" or "lexicographical" sorting. Here are some shots for java:

http://www.java2s.com/Code/Java/Collect ... arator.htm
http://stackoverflow.com/questions/1022 ... iendly-way

thx
thomas

Return to Feature requests

Who is online

Users browsing this forum: No registered users and 62 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.