Let T be a tree with n vertices and let ϕ(T,λ)=∑k=0n(-1)kck(T)λn-k be the characteristic polynomial of Laplacian matrix of T. It is well known that cn-2(T) is equal to the Wiener index of T, while cn-3(T) is equal to the modified hyper-Wiener index of T. For two n-vertex trees T 1 and T 2 , write T1⪯T2 if ck(T1)⩽ck(T2) for all 0⩽k⩽n. Let Γ(n) be the set of all trees with 2n vertices and perfect matchings except P 2n and A n-1,1 , where P s is a path with s vertices and A s,t is a tree obtained from a star S t+1 with t+1 vertices by attaching s pendent paths of length 2 to the center of S t+1 . In this paper, we first give a graphic transformation that increases all Laplacian coefficients of an arbitrary tree, we then determine the minimum element and the second minimum element in Γ(n) under the partial order ⪯, and we finally identify the maximum element and second maximum element in Γ(n) under the partial order ⪯. Furthermore, we characterize some trees with extremal Wiener indices and Laplacian-like energies.