Apple ranked No. 4 and Alphabet climbed two spots to No. 5. Alphabet also remained the most profitable company on the list.