make ordered leaf list