Carried interest vs. profits to the LP

which one comes first?

Carried interest is the interest that is paid to the General Partner, it is supposed to be paid after the profits of LP. But when exactly, it is different by the agreement of each fund, whether it is deal by deal or when the IRR equals or exceeds the hurdle rate.