fetch-pack: sort incoming heads