If you have a list of autors in each record that you want to sort, you can use this. Also, replace $rec{'author'} with the name of your field. Just insert this code in html.pl right after:
Code:
@authors = split(', ', $rec{'author'});
foreach (@authors) {
$reversed = join(' ', reverse split(' ', $_));
$backward .= "$reversed, ";
}
@forward = split(', ', $backward);
foreach (sort @forward) {
$ct++;
$back_again = join(' ', reverse split(' ', $_),);
($ct == $#forward + 1) ? ($sorted_authors .= $back_again) : ($sorted_authors .= "$back_again, ");
}
Then replace the the $rec{'field_name'} that you normally use with:
This all assumes that you are not using auto generate.
[This message has been edited by Chris071371 (edited January 07, 2000).]