Changed sleepsort to be async