add sorting for scanners