in reply to Re: reading a log file and sorting by last name
in thread reading a log file and sorting by last name

If you just want to swap the first and second fields then:
open (LOG, $log) or die "Error: $!"; print sort map { s/(\S+)(\s+)(\S+)/$3$2$1/; $_ } <LOG>;