Ensure freqs are sorted