Sort:  

They spend less energy flying like this,
they change in turn the leading position which is the one that uses this energy the most.
Those behind take advantage of the currents created by those in front.

Yes you are correct.