Dick's Sporting Goods has posted higher second quarter profits than the same period last year, thanks to improved sales.