You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Adding files to iTunes: iTunes adds them in no particular order

I have some cds that my laptop won't read. So I had to import them on my other pc, and later add them to my laptop's library (they are mp3 files now). No matter which way I add them (1: having windows explorer in a smaller window over maximized itunes window and dragging them to the library or 2: using Add Folder to library) iTunes will add them in disorder.

When I import a cd, it imports the songs in track listing order. I keep my library in "added" order.
When I add them to the library as explained above, iTunes does so in no particular order, and if I try to do it again, it does so in yet another order. Totally arbitrary order. Not alphabetical title, not track number, not size or time, totally no particular order.
I want the files to be added (and so, displayed in track listing order when "added" sort order) in track listing order. Is there a way to do this other than adding the files one by one?
This is a 20-cd box with 440 songs, it would be suicidal.

As I already mentioned, I want this because I keep the library as sort by "added", and anyway unless you keep it ordered by track number, which is stupid as it would sort all songs in the library i assume by track number, they should be imported as track number first.

Thanks

Dell XPS laptop, Windows XP

Posted on May 6, 2010 5:20 PM

Reply
23 replies

May 7, 2010 12:31 AM in response to YesEtc

Make sure you update their ID3 tags with the track numbers, which will help iTunes decipher the order.

When you add them to a playlist, you can arrange them in the order you'd like, then r/click the playlist and choose "Copy to play order", which will ensure that the order shown is the order it'll play in

May 7, 2010 4:03 AM in response to joegan

I think you misunderstood me: the ID3 tag is complete, I imported those cds with itunes from another pc, they have the track number in them. Also, I know I can use a playlist to fix this, but that is not a real solution. I want the library to be in order all the way. Adding songs should be done in some order, I can't believe that adding files to a library happens in a totally arbitrary fashion.

May 7, 2010 10:48 AM in response to IdrisSeabright

Well I don't know how else to say what the problem is really.

I'll try again:

1) you import a cd with a computer
2) you copy those mp3 files with a usb to stick.
3) you insert said usb stick to another computer with another itunes library
4) using "add folder" to library, you add the folder containing afore-mentioned mp3 files to the itunes library of the second computer.
5) itunes adds the mp3 files in that folder, to the library and does so in disorder. It doesn't add track 1 and then track 2 and then track 3. It adds them as if it was taking them out of a sack one by one blindly. I think there should be a way that itunes let you add these files in the track number order, as though as if you'd be importing the cd in that library.

Is it clear now?

May 7, 2010 11:25 AM in response to YesEtc

If you want the tracks in some kind of order, you have to sort them in iTunes. I find the list view quite easy to manage. Click on the column header "Album" and iTunes will sort your tracks by album and by track order within album.

The only other thing I can think of that you could be talking about it the order of the tracks while looking at the folder in Windows Explorer?

May 7, 2010 11:40 AM in response to IdrisSeabright

I don't want to use Album sort Meg, because that would sort all my library by album, and by default I keep my library in Added order. I spent months uploading all my cds, and the are all in order or track number because I imported them on this computer. There must be a way that you can add files imported with another computer and have them be added and shown in the same order as an imported cd on that computer.
Like I said already, using a sort is not an option. I really have trouble believing that apple people who are all about being cute and organized, left this function to act the way it wants and add the files in a different way every time you try to add that folder.

May 7, 2010 1:04 PM in response to YesEtc

YesEtc wrote:
I have some cds that my laptop won't read. So I had to import them on my other pc, and later add them to my laptop's library (they are mp3 files now). No matter which way I add them (1: having windows explorer in a smaller window over maximized itunes window and dragging them to the library or 2: using Add Folder to library) iTunes will add them in disorder.

When I import a cd, it imports the songs in track listing order. I keep my library in "added" order.


Correct. When iTunes rips a CD, it works in order of the track numbers. When it adds a bunch of files from a folder, it processes them in the order Windows hands it in, which has nothing to do with track number.

If you want the Date Added sort to match the track number, don't add a folder at a time. Drag the files in one at a time in track # sequence.

May 7, 2010 1:14 PM in response to ed2345

I know that, but like I wrote in my initial post, I am talking about a 20-disc/440-tracks collection. In the end I added cd folder by cd folder, but that's not great.

And I should have known there was going to be a way apple was not going to be at fault in this too. The majority of people use and always will use windows, and because of this, apple should fix this problem instead of altering things that work fine.

May 7, 2010 1:26 PM in response to YesEtc

As Ed says, it works that way because when you add a folder of tracks into iTunes they arrive from the filing system in no particular order. If you'd be happy to have them arrive in increasing track order so they are correct when you list your library in *Date Added (Oldest > Newest)* then this is easily achievable by using iTunes Folder Watch to manage the import. However I've seen a number of users who want the most recently added album listed first, Date Added (Newest > Oldest) but in the correct track order. This normally has to be done by deleting the tracks and then painstakingly adding them back in, one at a time, from last track to first. I've recently been exploring what is & isn't feasible with iTunes scripts and I think I might be able to constuct something to automate this task if you'd be interested.

tt2

May 10, 2010 5:04 AM in response to turingtest2

This is proving trickier than I first thought. The date added values are stored internally to 1 second precision. When in descending date added order tracks with identical date added values are further ordered by increasing values of track name or sort track name where present.

I have a test script that maintains the orginal date added values but reassigns each track in the correct order however this may fail when there are tracks with identical date added values. If I can work out how to delete the relevant tracks via the script I can then arrange to reimport them, at least 1 second apart, in the correct order.

tt2

May 10, 2010 12:29 PM in response to YesEtc

This has always bothered me, too. My most common library view is also by "Date Added".


It takes me a long time to do anything like that, because I drag them in one by one, so they will be in the order I choose. If I had to do it more often, it would be intolerable....I know exactly what you mean about it being suicidal for 440 songs.



Interesting that you find it never adds them in the same order. I've never really checked - just been annoyed that there doesn't seem to be any pattern I can see. I am not disputing this, but I will point out, a computer program usually only works one way, over and over. Maybe it is something really bizarre such as a combination of 2 fields, perhaps title and file size, or Date Modified from windows.



With the itunes consolidate command, I finally figured out that it was copying files to the new location in order of itunes library Date Added. I kept looking for alphabetizing or track/disk numbering, when it turned out to be a date stamp that was doing it.



Anyway. iTunes now has Home Sharing, and I wonder if that would give you any better results? Nope. I take it back, I remember no joy there, as well. Next time I have something fairly large to copy over I'll see if I notice anything new.

May 10, 2010 1:10 PM in response to Katrina S.

A bit of experimenting has shown:
The date added values are stored internally to 1 second precision. When in descending date added order tracks with identical date added values are further ordered by increasing values of track name or sort track name where present.

Delete & reimport the same group of tracks and you may get different subsets with identical date added values, e.g. one time you get the first 3 tracks together, the next time only 2. Within each group they will then be ordered by track name (why not track no?!?!?) so different occasions can produce different results. One time when a really slow computer is probably a blessing.

I've just about worked out how to remove & reimport a set of tracks in the correct order, but I'm still looking to preserve as much iTunes specific meta-data (ratings, play counts etc.) as possible.

tt2

May 11, 2010 1:15 PM in response to turingtest2

For anyone interested I've created a script called SortDateAdded that will take a selection of tracks, or the tracks of the current playlist, then remove & reimport those tracks in reverse Album by Artist order so that Date Added (Descending) lists the tracks in their natural album order.

It assumes that you either let iTunes organise your file and folder names or use an equivalent scheme such that ordering by path will put tracks in artist/album/track order. The script is limited to a max of 500 tracks to prevent accidents or hangs. As far as I can tell I've managed to preserve all iTunes specific meta-data (for tracks with tags) apart from the original Date Added & Date Modified values and track positions within playlists. Membership of non-smart playlists is preserved as are checked status, EQ settings, play & skipped counts & dates, album & track ratings and volume adjustments.

It's not the fastest script in the world, although in part that is down to how long iTunes takes to process the various calls. It may work slightly faster if you switch to a different source, e.g. Radio, while it is running so that iTunes isn't trying to update the screen with the newly added tracks. It could also be improved with additional tests for potential error conditions, e.g. it currently chokes on PDF files, but it has got to be easier than doing the same job by hand...

As ever ensure you have a backup of your library before running any script and test it on a few items until you are happy it works as you wish.

Hope someone finds it useful.

tt2

Adding files to iTunes: iTunes adds them in no particular order

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.