Two jailed after knife fight