A closer look

Why use intelligence when you can use pure, unadulterated chaos? Bogosort is an intentionally terrible sorting algorithm that checks if a list of numbers is in order, and if not, completely randomizes the entire list and checks again. It might sort your data on the first try, or it might take until the end of the universe. It is the algorithmic equivalent of throwing a deck of cards at the wall until they land in sequence.