Cart: first, classify all books from cart,get every book's type and count; then,in order to caculate cost simply, sort books by reversed order;
Cart: first, classify all books from cart,get every book's type and count; then,in order to caculate cost simply, sort books by reversed order;