Merge Sort is pretty great for sorting all sorts of values. Seriously! There isn’t a whole lot to say that is bad about it. It is performant with consistent O(n log n) time complexity, reasonable storage needs, and it also happens to be stable!
-------
📄 Read the article: https://www.kirupa.com/sorts/mergesor...
📙 Check out my Algorithms book: https://www.amazon.com/exec/obidos/AS...
🗞️ Sign-up to the newsletter: https://www.kirupa.chat
❓ Ask a question: https://forum.kirupa.com
-------
#javascript #algorithms #datasorting