The jeans chess player Magnus Carlsen wore when the world No 1 withdrew from a tournament over its dress code have been sold in an eBay auction for $36,100 with proceeds going to charity.