fixed initial selected lines

Before this patch sometimes the lines were not selected, because of string comparison.
Example: `#5-11`
The string "5" is greater than the string "11", so no lines were selected…