In that case, how about:
IFS='' read -d '' latest < <(find $pattern -prune -print0 | sort -z --reverse --version-sort)
In that case, how about: