move calculate sort title to separate function and check if book title has been changed, and if so, update sort title
move calculate sort title to separate function and check if book title has been changed, and if so, update sort title

allen-garvey/booklist-rails,allen-garvey/booklist-rails,allen-garvey/booklist-rails