Resolves #50 - Sorting affects one line too much

The end of the selection is only expanded to another full line if it is not at the beginning of the line. This behaviour is consistent with the commenting/uncommenting or indenting/unindenting of a selection.