The FIA have intervened there and virtually fixed the result.
Red Bull took a gamble to pit, give up position to back markers on the risk that they may or may not be let go.
Mercedes took the gamble that the safety car would last long enough to reach the end while unlapping or that Max would sacrifice position.
The FIA, seemingly for the first time ever, have then at short notice decided to reorder only the cars that are between Max and Lewis.
That just isn't sporting because they're changing the parameters the teams are making decisions within. If they'd known beforehand that regardless Max would be put behind Lewis, Mercedes would have pit Lewis.