The latest rankings published by Fortune put Walmart on the first position in terms of revenue, but with Apple at the top of the list for profitability, with Cupertino outscoring all of its rivals, including Microsoft and Alphabet.

The Fortune 500 ranking, which uses the most recent fiscal year for each company, puts Apple on the first place with $45.6 billion profit, followed by JP Morgan Chase with $24.7 billion and Berkshire Hathaway with $24 billion.

Rival Alphabet, which is the parent company of Google, is fifth in the chart with $19.4 billion profit, while Microsoft is seventh with $16.7 billion. Facebook is far behind with “just” $10.2 billion.

In the full list, Wallmart leads the charts, with Apple only third, while Alphabet and Microsoft land on the 27th and 28th positions, respectively.