Hello everyone,
I have built an online Media Gallery to show my family and friends just how much of a junkie I am! I'm using flat text files, and pulling all the data out and creating an array.
When I sort the array, I'm currently using the simple sort() function. However, if you go to http://shaunw.com/media/search.php?search_dvds=on&showall=on&search_title=&search_genre=&year= you'll see that I am displaying all the results, but they aren't always in the right order. For example, in my mind "Blow" should come before "Blown Away". I tried several other sort functions (arsort(), asort(), ksort(), natsort(), natcasesort(), rsort(), usort(), array_multisort(), and uksort()) with varying degrees of success (some of them whacked off both of them), and none of them seem to work.
Does anyone know of another inherint PHP sort fuction that I might be able to use, or is what I want just impossible? I have a 'hidden' field on each line, and I used that to correct some of them (that's how I got "Blade" to come before "Blade Runner"), but if there's a better way to do it, I'd like to find it.