Updated the sorting of lines, so that numbers are considered not digit by digit, but as complete numbers.