fixing book sorting