fixup! Do not assume sorted freqs