added fullTableScan detection also for sort queries.