Ok, starting to get a grasp on this (again, using multiple foreach() functions, which may be completely wrong).
Now, I'm trying to figure out sort().
The xml is sorted by date descending and I want an alphabetical list as a sidebar.
I can do sort($articles) and it does sort the list, alphabetically. Unfortunately, it removes the first alphabetic entry (A Fighting Spirit) and shows the second alphabetic entry (A Vision Of Victory) as the first. Then it shows a blank last alphabetic entry.
Also, obviously, if I also do sort($files), it sorts the two variables differently.
That's not what I'm looking for (as $files will be used for the links).
I'm trying to figure out how to sort $item, so that it will force everything within $item to be sorted.
Apparently, no sorting produces the same result (missing the first entry and having an empty last entry).
I didn't realize it until just now.