Bogo sort

A naive sorting that picks two elements at random and swaps them.

Time Complexity: O(n * n!)

Space Complexity: O(1) Auxiliary

Stable: No


WARNING: This algorithm may never sort the list correctly.

<?php
    echo "Hello, world!";
?>