sort selected lines