List all files in the current directory and its subdirectories, excluding the current directory itself, and sort them by the second dot-separated field numerically.
ls -R * | grep -v '^\.$' | sort -t . -k 2 -n