Intelligent episode ordering/sorting
#1
when i go to an folder which has a list of episodes in, they are incorrectly odered. instead of:

ep 1
ep 2
ep 3
ep 4
ep 5
ep 6
ep 7
ep 8
ep 9
ep 10

they are ordered so:

ep 1
ep 10
ep 2
ep 3
ep 4
ep 5
ep 6
ep 7
ep 8
ep 9

is there any way to change this or is it a bug in the sorting code?

thanks
#2
looks to me like it's a "bug" in your filenaming scheme.

it's sorting alphabetically correctly.

name your files 01, 02, ... if you want it to sort correctly.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
#3
i think i'll just have to live with it then, windows displays them properly though :d
#4
sounds like windows is buggy then. :p

what are the exact filenames?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
#5
the exact names are:

episode 1 - name
episode 2 - good
episode 3 - life
episode 4 - trying

etc etc

if there are more then 10 it order like this:

episode 1
episode 10
episode 11
episode 12
episode 13
episode 14
episode 15
episode 16
episode 17
episode 18
episode 19
episode 2
episode 20
episode 21
episode 22

etc
#6
i find it interesting that windows orders the files non-alphabetically. will have a play with windows tonight (if i remember) and see if i can figure out the "algorithm" it is using to decide when to order numerically over alphabetically.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
#7
(jmarshall @ dec. 15 2004,16:34 Wrote:i find it interesting that windows orders the files non-alphabetically. will have a play with windows tonight (if i remember) and see if i can figure out the "algorithm" it is using to decide when to order numerically over alphabetically.
thanks, it's something that bugs me a little Smile
#8
Sad 
you're wrong, windows do sort it alphabetically just like xbmc, i just tested it to prove you wrong; windows explorer in windows 2000 lists:

episode 1 - test.avi
episode 10 - test.avi
episode 2 - test.avi
episode 25 - test.avi
episode 3 - test.avi
episode 31 - test.avi
episode 4 - test.avi
episode 5 - test.avi
episode 7 - test.avi
episode 8 - test.avi
episode 9 - test.avi

so the only solution is that you re-name your files correctly (01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11 and so on) :p
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
#9
interestingly enough, in my pictures under the my documents folder in windows, it lists my xbox debug screenshots as:

xbox-image1.bmp
xbox-image2.bmp
xbox-image3.bmp
xbox-image4.bmp
xbox-image5.bmp
xbox-image6.bmp
xbox-image7.bmp
xbox-image8.bmp
xbox-image9.bmp
xbox-image10.bmp
xbox-image11.bmp
xbox-image12.bmp

etc.

perhaps it orders the "my ..." folders differently?

ps: an algorithm to order like this is easy enough to implement.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image

Logout Mark Read Team Forum Stats Members Help
Intelligent episode ordering/sorting0