Yup, DOH!. Technically I don't even need the <=>. I could just take the last output of glob. Still en expensive way of doing it. After reviewing the input here it would definately be better to perform an ST on an array populated using opendir/readdir.