Fixed a sorting issue when displaying the list of books