makeOrderedLeafList first implementation (1st pass sort)