Alfred's sorting algorithm is time-dependent