The frequency sorting is working.