Gartner predicted last month that global smartphone sales would return to growth next year, and its latest numbers show that this was actually achieved sooner than expected, in Q3 this year.

Apple’s growth in Q3 was of course constrained by those awaiting the launch of the iPhone X in Q4, limiting year-on-year sales growth to 5.7%.

Gartner said that Apple also returned to growth in China, and saw strong sales in India and other emerging markets. This was primarily ascribed to sales of legacy handsets, right the way back to the iPhone 5S, still sold in some markets at a price of around $240.

Apple’s worldwide market share climbed slightly from 11.6% in Q3 2016 to 11.9% in the same quarter this year. Samsung comfortably held its top slot with 22.3%, thanks to a wide range of phones at all price points as well as its latest flagships doing well against Chinese brands.

Chart: Statista