Depth buffer has an issue of scales: one thing is 1 meter away and another one is 1 million meters away with another several thousand billion meters away. That makes it practically unusable for global positioning (especially for things that are both far away, but another one is just a little bit further).
On the other hand sorting doesn't need to have a global axis - in the perfect case it just needs to compare two elements against each other.
On the other hand sorting doesn't need to have a global axis - in the perfect case it just needs to compare two elements against each other.