sort was running async + added wait for sort command