In a surprising turn of events, Apple has claimed the top spot in global smartphone sales, while competitors like Samsung and Xiaomi face declines.