If the log file names don't end with digits, sort them by the last sequence of digits that can be found in the name.