r/javascript • u/Ayoob_AI • Mar 24 '26
ayoob-sort, An adaptive sorting engine with the first non-comparison float sort in JavaScript
github.com
11
Upvotes
Built a general-purpose sorting library that adaptively switches between counting sort, radix sort, merge sort, and sorting networks depending on input type and size.
Results: 59/62 wins against npm sorting packages, 95.7% podium rate, 3–21x faster than native Array.sort()
Also includes what I believe is the first non-comparison float sort in JavaScript using IEEE 754 radix decomposition.
npm install ayoob-sort
Happy to answer any questions or have someone try to beat it.