Page 1 of 1

Alphabetizing With Numbers

PostPosted: Wed Jan 04, 2012 12:21 am
by ytechie
I don't know if anyone has experienced this, and it isn't a pressing issue at all (not for me, at least) but I have a TV show with ten seasons, and it is organized into ten folders labeled "Season 1" through 10.

Problem is that "Season 10" will actually be at the top of the list because it has a '1' after 'Season.'

To prevent this, I renamed the folder to "Season Ten" which ends up at the bottom where it belongs.

I have version 4.5 though, so for all I know this was already fixed :D

Just thought I would see if anyone else has had or is having a similar problem.

Re: Alphabetizing With Numbers

PostPosted: Wed Jan 04, 2012 2:59 am
by BKKKPewsey
I have a particular TV show with 20 seasons labelled " foobar Season 01" etc and that sorts correctly :?

Re: Alphabetizing With Numbers

PostPosted: Wed Jan 04, 2012 3:22 am
by ytechie
Thanks so much! You led me to the answer!

I had "Season 1" etc, and you had "Season 01" etc.

with the 0 in front, the list no longer says "Season 1", "Season 10", "Season 2" because 0 comes before 1 :roll:

Re: Alphabetizing With Numbers

PostPosted: Sun Jan 15, 2012 1:56 am
by ytechie
I was looking at randomizing javascript arrays and came across what I think is the problem with the numbering here.

I think the albums are sorted lexicographically. If you're interested, take a look at how to sort numerically: http://www.javascriptkit.com/javatutors/arraysort.shtml