Sorting error messages by line number. Fixed line numbers.