Added nationality in sort sequence and a try for invalid data in books table