sleep sort method, golang version