bash – I am trying to get this file to show Author before the CSV which is the “,” only the first name shows

#!/bin/bash
# this is the input
#Clive Cussler,Ghost Ship,9780399167315
#Clive Cussler,Bootlegger,9780399167295
#James Patterson,Invisible,9780316405345
#James Patterson,Gone for Now,9781455515845
#James Rollins,Map of Bones,9780062017855
#Michael Connely,Lincoln Lawyer,9781455516345
#David Baldacci,The Escape,9781478984345
set INPUT=0

set IFS=,

    

echo 'how do you want to sort the file?'
echo '1 for Author'
echo '2 for Title'
echo '3 ISBN'
read -r INPUT

case $INPUT in

        1] sort -t "," -k 1 project2.input > Proj2.sorted;
           outfile=project2.author.out;;

        2] sort -t, -k  project2.input > Proj2.sorted;
           outfile=project2.title.out;;


        3] sort -t, -k  project2.input > Proj2.sorted;
           outfile=project2.isbn.out;;

        *] echo 'invaled not 1-3'; exit;;

esac

# Setting up echo and header information here.
echo "******************************************" > "$outfile"
echo "* CIS 129 Project 2                      *" >> "$outfile"
echo "*          6/19/2021                     *" >> "$outfile"
echo "******************************************" >> "$outfile"



while read -r author title isbn
do
       echo $author

done < Proj2.sorted