Sort:  

the box was a rectangle, but not a square.

Yes, a rectangle is not a square.