Posts: 9
Joined: Dec 2004
Reputation:
0
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
Posts: 26,215
Joined: Oct 2003
Reputation:
187
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.
Posts: 9
Joined: Dec 2004
Reputation:
0
i think i'll just have to live with it then, windows displays them properly though :d
Posts: 26,215
Joined: Oct 2003
Reputation:
187
sounds like windows is buggy then. :p
what are the exact filenames?
Posts: 9
Joined: Dec 2004
Reputation:
0
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
Posts: 26,215
Joined: Oct 2003
Reputation:
187
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.
Posts: 10,520
Joined: Sep 2003
Reputation:
10
Gamester17
Team-XBMC Forum Moderator
Posts: 10,520
2004-12-17, 11:43
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
Posts: 26,215
Joined: Oct 2003
Reputation:
187
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.