sort.cny.shStart a race
Back to library
03Bring your own data

Race your own data.

Paste a JSON array, point at a property — numbers, strings, or booleans — and watch every algorithm fight over it at once. Up to 256elements. Bogo sort, mercifully, isn't invited.

Leave empty to sort raw values. Works for [1,5,3] or ["b","a"].

Ready to go

16 number

min 2 · max 95

[ 42, 7, 19, 88, 33, 2, 61, 27, …(+8) ]

tick · 0

Bubble Sort

avg · O(n²)

idle
cmp0
wrt0
stp0

Insertion Sort

avg · O(n²)

idle
cmp0
wrt0
stp0

Selection Sort

avg · O(n²)

idle
cmp0
wrt0
stp0

Cocktail Shaker Sort

avg · O(n²)

idle
cmp0
wrt0
stp0

Gnome Sort

avg · O(n²)

idle
cmp0
wrt0
stp0

Shell Sort

avg · ≈O(n^1.3)

idle
cmp0
wrt0
stp0

Merge Sort

avg · O(n log n)

idle
cmp0
wrt0
stp0

Quick Sort

avg · O(n log n)

idle
cmp0
wrt0
stp0

Heap Sort

avg · O(n log n)

idle
cmp0
wrt0
stp0

Radix Sort (LSD)

avg · O(nk)

idle
cmp0
wrt0
stp0

Counting Sort

avg · O(n + k)

idle
cmp0
wrt0
stp0

TimSort

avg · O(n log n)

idle
cmp0
wrt0
stp0