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 ProQuarterly Investment Guide: Navigating the third quarter after 2022's rough start
CNBC ProThree stock market themes to play in the third quarter
CNBC ProOil prices show no signs of easing as China starts to reopen and supply worries persist