Scanned frequencies are saved in ascending ordering

Change-Id: Ie426ec3fa4aa3e8f4136938eb35f419ecc0aa71a
(cherry picked from commit 9aaf12f1fd80efd625a9d6be735852b5201eb4ee)