Old-line energy is the best performing sector so far this year and could continue to win

A maze of crude oil pipes and valves is pictured during a tour by the Department of Energy at the Strategic Petroleum Reserve in Freeport, Texas, June 9, 2016.
Richard Carson | Reuters

The stock market has struggled this month, but the old-line energy stocks that drill for oil and gas have made double digit gains and could continue to outperform in 2022, analysts say.

More In Investing trends

CNBC ProThese are the cheapest stocks in the S&P 500 that could be buying opportunities
CNBC ProHere are the ETFs that are working during this brutal year
CNBC ProRetail stocks slide after Target, Walmart’s dire results. Here’s where to find the good buys