sort: fix -kN,M handling (was including last separator into the comparison)