Moved sort execution time calculation to before sort validation.