Create a recursive directory reading routine (search the forum, many are available) and read the dir/filenames into an array so that you alway add the author and the title.
That'll give you somehting like
$aArray = array('author'=>'bert', 'title'=>'beam me up scotty');
then you can use one of the various array-sorting routines to sort by the first key and then by the second.