Sleep-Sort-Algorithm The idea is to iterate through each element x in array and sleep for x seconds before printing / adding x to the result.