Surfwear and sportswear retailer Pacific Sunwear of California has seen its second-quarter net loss narrow on the back of increased sales and higher merchandise margins.