How to make a car game real time ranking

As the title says, I want to make a real time ranking in my car game.But I haven’t find a good way to make it.Could anyone help me?

Check the first answer here: Race Position HELP!! - Unity Answers

I think thats a pretty good way to go about it.

Alternatively you could set up some waypoints linked by some sort of bezier curve and find the car positions along that curve to find their relative positions.

You can find tutorial about realistic car making on youtube.