Sort "unused_recs" dictionary wherever it's scanned