In the paper spaces of periodic functions of several variables were considered, namely the Lorentz space L-2,L-tau(T-m), the class of functions with bounded mixed fractional derivative W-2,r,(tau), 1 <= tau < infinity, and the order of the best M-term approximation of a function f is an element of L-p,L-tau(T-m) by trigonometric polynomials was studied. The article consists of an introduction, a main part, and a conclusion. In the introduction, basic concepts, definitions and necessary statements for the proof of the main results were considered. One can be found information about previous results on the mentioned topic. In the main part, exact-order estimates are established for the best M-term approximations of functions of the Sobolev class W(2,tau 1)((r) over bar )in the norm of the space L-p,L-tau 2 (T-m) for various relations between the parameters p, tau(1), tau(2).