Determined an acceptable tree sorting method