add makeOrderedLeafList implementation