Cart is functional with sorting