Reclaim removed APFS partition disk space
Solution 1:
Your question looks similar to this one. Take a look at the output of gpt show disk0
and you'll probably find that the free space physically exists at the start of the container, and not the end of it. You'll need to physically move the partition extents if that's the case (see my other answer).