arr[i] < arr[j]
swap(arr[i], arr[j])
for i in range(n)
sorted: true
<
>

Visualize Sorting Algorithms

Watch how sorting algorithms work step by step with interactive animations and clear comparisons.

Enter numbers separated by commas, or generate a random array, and watch how different sorting algorithms work their magic.