I recently bought a Sansa m260 MP3 player. To my surprise, I found that its default behaviour appeared to be to play the tracks on my albums in alphabetical order, instead of in track order. Grrrr. SanDisk says to use Windows Media Player on WinXP to fix this problem. I'd much rather use iTunes under OS X!
Here is the solution I came up with, which made the Sansa properly-order my iTunes-generated MP3s. It requires a shell script and a Perl script, and you'll want to run it on a backup copy of your iTunes library, just in case something goes wrong.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20060901154709536