Made scanned classes sorted