fix sort error caused by m.treemarkmode missing