Alphabetizing With Numbers

General discussions.

Moderator: moderators

Alphabetizing With Numbers

Postby ytechie » Wed Jan 04, 2012 12:21 am

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.
User avatar
ytechie
 
Posts: 547
Joined: Sun Dec 12, 2010 5:05 am
Location: Manhattan, New York

Re: Alphabetizing With Numbers

Postby BKKKPewsey » Wed Jan 04, 2012 2:59 am

I have a particular TV show with 20 seasons labelled " foobar Season 01" etc and that sorts correctly :?
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Alphabetizing With Numbers

Postby ytechie » Wed Jan 04, 2012 3:22 am

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:
User avatar
ytechie
 
Posts: 547
Joined: Sun Dec 12, 2010 5:05 am
Location: Manhattan, New York

Re: Alphabetizing With Numbers

Postby ytechie » Sun Jan 15, 2012 1:56 am

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
User avatar
ytechie
 
Posts: 547
Joined: Sun Dec 12, 2010 5:05 am
Location: Manhattan, New York


Return to General

Who is online

Users browsing this forum: No registered users and 8 guests