fix sort error caused by m.treeMode not exists