implemented inOrderDFT