Maharshi Pathanjali speaks of dharana concentration, dhyana "meditation and samadhi" trance. These three are related to one another in cause and effect. Their order is fixed.
Dharana is the first; dhyana is next and samadhi is the last.
The attainments are achieved by samyama. Samyama consists of dharana, dhyana and samadhi together.