In this letter we discuss the masses and the splittings of 1 2S+1 P J states in the spectrum of D and B mesons, as they appear in the approach of the QCD string with quarks at the ends. We find good agreement of our predictions with those of other QCDmotivated models as well as with the lattice and experimental data, including recent experimental results. We discuss the ordering pattern for P levels in D-and B-mesonic spectrum.Data on the spectroscopy of heavy-light mesons coming from various experimental collaborations are challenge for theorists, and these are D and B mesons to play an important role in checks of the validity and accuracy of the models.In this letter we address questions concerning the masses of orbitally excited D and B mesons in the method of the QCD string with quarks at the ends, paying special attention to the ordering of the P levels. The choice of D and B mesons is not accidental and is stipulated by the recent data on the masses and decays of the above mentioned heavy-light mesons coming from various experimental collaborations. Despite of the fact that there is no agreement between them and some resonances are not yet confirmed, still we find it interesting to compare these experimental data, as well as those provided by other models and lattice simulations, with the predictions of our approach. First, let us remind the reader the basic ideas of the latter.Starting from the gauge-invariant wave function of the qq meson,with Φ being the parallel transporter, we write the Green's function of the meson,