BogoSort or Permutation Sort Algorithm

It's a sorting algorithm that randomly permutes the elements of the array until they are sorted.